Browse Source

修改协议地址初始化方法

jsonwang 3 years ago
parent
commit
8ad1fe7df5
1 changed files with 4 additions and 6 deletions
  1. 4 6
      Introduce/Record/INRecorderController.swift

+ 4 - 6
Introduce/Record/INRecorderController.swift

@@ -14,9 +14,10 @@ import TYAttributedLabel
 import BFCommonKit
 import BFAnalyzeKit
 
+ 
 class INRecorderController: BFBaseViewController {
-    var cUserProtocol:String = ""
-    var cPrivacy:String = ""
+    var cUserProtocol:String = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoservice_\( BFLocalizedUtil.currentLanguage()).html"
+    var cPrivacy:String = "https://weapppiccdn.yishihui.com/resources/agreements/shishuo/videoagreement_\( BFLocalizedUtil.currentLanguage()).html"
     
     lazy var addVideoBtn: UIButton = {
         let btn = UIButton(type: .custom)
@@ -78,10 +79,7 @@ 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