|
|
@ -30,7 +30,9 @@ class VersionUpdateService extends GetxService { |
|
|
static final String? _countryCode = Get.deviceLocale?.countryCode; //国家地区编码 |
|
|
static final String? _countryCode = Get.deviceLocale?.countryCode; //国家地区编码 |
|
|
static final String? _languageCode = Get.deviceLocale?.languageCode; //语言编码 |
|
|
static final String? _languageCode = Get.deviceLocale?.languageCode; //语言编码 |
|
|
// ignore: non_constant_identifier_names |
|
|
// ignore: non_constant_identifier_names |
|
|
static final String? _SERVER_URL = dotenv.env['SERVER_URL']; //服务器地址 |
|
|
static final String? _SERVER_URL = (_countryCode == 'CN') |
|
|
|
|
|
? dotenv.env['SERVER_URL'] |
|
|
|
|
|
: dotenv.env['HW_SERVER_URL']; //服务器地址 |
|
|
|
|
|
|
|
|
// 添加 getter 方法来访问缓存的静态数据 |
|
|
// 添加 getter 方法来访问缓存的静态数据 |
|
|
/// 获取缓存的应用版本 |
|
|
/// 获取缓存的应用版本 |
|
|
|