处理兼容性问题
处理兼容性问题
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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() => {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user