瀏覽代碼

用户协议动态设置地址

jsonwang 3 年之前
父節點
當前提交
afaba8da35
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      Introduce/Record/INRecorderController.swift

+ 8 - 4
Introduce/Record/INRecorderController.swift

@@ -14,11 +14,10 @@ import TYAttributedLabel
 import BFCommonKit
 import BFAnalyzeKit
 
-public let cUserProtocol = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoservice.html?type=20"
-/** 隐私政策 */
-public let cPrivacy = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoagreement.html?type=20"
-
 class INRecorderController: BFBaseViewController {
+    var cUserProtocol:String = ""
+    var cPrivacy:String = ""
+    
     lazy var addVideoBtn: UIButton = {
         let btn = UIButton(type: .custom)
         //        btn.setTitle("Add", for: .normal)
@@ -79,6 +78,11 @@ class INRecorderController: BFBaseViewController {
     }()
  
     lazy var protocolLab: TYAttributedLabel = {
+        
+        //根据当前系统语言设置不同的地址
+        cUserProtocol = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoservice_\( BFLocalizedUtil.currentLanguage()).html"
+        cPrivacy = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoagreement_\( BFLocalizedUtil.currentLanguage()).html"
+        
         let protocolLab = TYAttributedLabel()
         protocolLab.highlightedLinkBackgroundColor = UIColor.clear
         protocolLab.backgroundColor = UIColor.clear