Prechádzať zdrojové kódy

添加打包时间参数

jsonwang 3 rokov pred
rodič
commit
1ff1f3a26e

+ 2 - 0
Introduce/PQConfig.plist

@@ -6,5 +6,7 @@
 	<string>ENVModeTest</string>
 	<key>ENChannel</key>
 	<string>Appstore</string>
+	<key>ENBuildTime</key>
+	<string>1990-01-01 00:00:00</string>
 </dict>
 </plist>

+ 15 - 0
Introduce/Record/INRecorderController.swift

@@ -68,6 +68,16 @@ class INRecorderController: BFBaseViewController {
         return l
     }()
     
+    //显示编译时间
+    lazy var buildTimeLabel:UILabel = {
+        let l = UILabel.init(frame: CGRect.init(x: 0, y: 120, width: cScreenWidth, height: 20))
+        l.text = "打包时间:" + PQENVUtil.shared.ENBuildTime
+        l.textColor = .white
+        l.font = UIFont.boldSystemFont(ofSize: 18)
+        l.textAlignment = .left
+        return l
+    }()
+ 
     lazy var protocolLab: TYAttributedLabel = {
         let protocolLab = TYAttributedLabel()
         protocolLab.highlightedLinkBackgroundColor = UIColor.clear
@@ -160,6 +170,11 @@ class INRecorderController: BFBaseViewController {
         view.backgroundColor = .black
         view.addSubview(bgView)
         
+        if(PQENVUtil.shared.channel == "Development"){
+            view.addSubview(buildTimeLabel)
+        }
+      
+        
         view.addSubview(centerView)
         view.addSubview(bottomView)
         centerView.snp.makeConstraints { make in