22 lines
1001 B
Dart
22 lines
1001 B
Dart
/// 全局配置占位:接入真实支付前需替换以下值。
|
|
class AppConfig {
|
|
/// 后端服务器地址(订单创建/授权查询/套餐价格)
|
|
/// 默认指向线上域名;本地联调构建时用 --dart-define=API_BASE_URL=http://127.0.0.1:8080 覆盖
|
|
static const String apiBaseUrl = String.fromEnvironment('API_BASE_URL',
|
|
defaultValue: 'https://animal-spot.icu');
|
|
|
|
/// 微信开放平台 AppID(需在微信开放平台注册包名+签名)
|
|
static const String wechatAppId = 'wx0000000000000000';
|
|
static const String wechatUniversalLink =
|
|
'https://animal-spot.icu/wechat/';
|
|
|
|
/// 支付宝开放平台 AppID
|
|
static const String alipayAppId = '2020000000000000';
|
|
static const String alipayUniversalLink =
|
|
'https://animal-spot.icu/alipay/';
|
|
|
|
/// iOS URL Scheme(微信/支付宝拉起回调,需与 Info.plist 一致)
|
|
static const String wechatUrlScheme = 'wx0000000000000000';
|
|
static const String alipayUrlScheme = 'alipay0000000000';
|
|
}
|