处理兼容性问题

处理兼容性问题
This commit is contained in:
Zeus
2023-12-05 09:48:08 +08:00
parent a21a4e7f77
commit fa787018df
641 changed files with 29065 additions and 28 deletions
+2 -7
View File
@@ -1,16 +1,11 @@
class AppUrls {
// static const String baseUrl = 'https://user.51mdss.com'; // 基础接口地址
// static const String baseUrl = "https://www.58mdss.com";
static const String baseUrl = "https://gohash123.com";
static const String baseUrl = "https://kuyun888.com";
static const String baseApiUrl = '$baseUrl/api/v1'; // 基础接口地址
static const String login = '$baseApiUrl/passport/auth/login';
static const String register = '$baseApiUrl/passport/auth/register';
// static const String login = 'https://www.heyuegendan.com/vpn/login.php';
// static const String register = 'https://www.heyuegendan.com/vpn/register.php';
static const String getQuickLoginUrl =
'$baseApiUrl/passport/auth/getQuickLoginUrl';
static const String getQuickLoginUrl = '$baseApiUrl/passport/auth/getQuickLoginUrl';
static const String userSubscribe = '$baseApiUrl/user/getSubscribe';
static const String plan = '$baseApiUrl/guest/plan/fetch';
+3 -3
View File
@@ -58,15 +58,15 @@ class ServerEntity {
name: json["name"],
rate: json["rate"],
host: json["host"],
port: json["port"],
port: json["port"] ?? "",
serverPort: json["server_port"],
cipher: json["cipher"],
cipher: json["cipher"] ?? "" ,
show: json["show"],
sort: json["sort"],
createdAt: json["created_at"],
updatedAt: json["updated_at"],
type: json["type"],
lastCheckAt: json["last_check_at"] ?? "",
lastCheckAt: "",//json["last_check_at"] +
);
Map<String, dynamic> toMap() => {
+1 -1
View File
@@ -100,7 +100,7 @@ class HomeWidgetState extends State<HomeWidget>
final date2 = DateTime.now();
//比较相差的天数
final difference = date2.difference(birthday).inDays;
print("比较相差的天数DateTime(2023, 06, 12):${difference}");
// print("比较相差的天数DateTime(2023, 06, 12):${difference}");
return SingleChildScrollView(
controller: _controller,
physics: const BouncingScrollPhysics(),