소스 검색

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;