瀏覽代碼

fix:修改隐私协议兼容iOS。

zhoukun 6 月之前
父節點
當前提交
141dc4e250
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      lib/data/consts/web_url.dart

+ 4 - 2
lib/data/consts/web_url.dart

@@ -1,3 +1,5 @@
+import 'dart:io';
+
 import 'package:location/data/repositories/account_repository.dart';
 
 class WebUrl {
@@ -19,9 +21,9 @@ class WebUrl {
 
   static const String _customUrl = "https://qiyu-kefu.atmob.com";
 
-  static String get privacyPolicy => _privacyPolicy;
+  static String get privacyPolicy => Platform.isIOS? _privacyPolicyIos : _privacyPolicy;
 
-  static String get userAgreement => _userAgreement;
+  static String get userAgreement => Platform.isIOS? _userAgreementIos : _userAgreement;
 
   static String get shareUrl => _shareUrl;