Selaa lähdekoodia

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

zhoukun 6 kuukautta sitten
vanhempi
commit
141dc4e250
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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;