修正模拟器可能存在无法联网的问题

This commit is contained in:
2025-10-24 20:40:53 +08:00
parent 6657c0a77c
commit 6d4a4ff6a3
2 changed files with 35 additions and 13 deletions
+8 -10
View File
@@ -31,19 +31,17 @@ class KRDomain {
// 备用域名获取地址列表
static List<String> kr_backupDomainUrls = [
"https://bear-1347601445.cos.ap-guangzhou.myqcloud.com/bear.txt",
"https://getbr.oss-cn-shanghai.aliyuncs.com/bear.txt",
"https://gitee.com/karelink/getbr/raw/master/README.en.md",
"https://configfortrans.oss-cn-guangzhou.aliyuncs.com/bear/bear.txt",
"https://ppp2.oss-cn-hongkong.aliyuncs.com/bear1.txt",
"https://xgp3.oss-ap-northeast-1.aliyuncs.com/bear1.txt",
"https://xpp4.oss-ap-northeast-2.aliyuncs.com/bear1.txt",
"https://xpp5.oss-ap-southeast-1.aliyuncs.com/bear1.txt",
];
// 本地备用域名列表(当服务器获取的域名都不可用时使用)
static List<String> kr_localBackupDomains = [
"api.omntech.com",
"api6.omntech.com",
"api7.omntech.com",
"apicn.bearvpn.top",
"apibear.nsdsox.com",
"p1.maoayi.top",
"p2.maoayi.top",
"p3.maoayi.top",
];
static final _storage = KRSecureStorage();
@@ -1039,7 +1037,7 @@ class AppConfig {
/// 请求域名地址调试模式
String get baseUrl {
if (kDebugMode) {
return "http://154.12.35.103:8080";
return "https://api.maodag.top";
}
return "${KRProtocol.kr_https}://${KRDomain.kr_api}";
}