|
@@ -24,6 +24,13 @@ public class PQENVUtil {
|
|
let enStr: String = (config?.object(forKey: "ENVMode") ?? "ENVModeOnline") as! String
|
|
let enStr: String = (config?.object(forKey: "ENVMode") ?? "ENVModeOnline") as! String
|
|
return ENVMode(rawValue: enStr)!
|
|
return ENVMode(rawValue: enStr)!
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //打包的渠道 Appstore:苹果上传包渠道,Development:公司内部打包渠道会显示一些调试窗口信息
|
|
|
|
+ public var channel: String {
|
|
|
|
+ let config = NSDictionary(contentsOfFile: Bundle.main.path(forResource: "PQConfig.plist", ofType: nil) ?? "")
|
|
|
|
+ let channel: String = (config?.object(forKey: "ENChannel") ?? "Appstore") as! String
|
|
|
|
+ return channel
|
|
|
|
+ }
|
|
|
|
|
|
public static let shared: PQENVUtil = {
|
|
public static let shared: PQENVUtil = {
|
|
let instance = PQENVUtil()
|
|
let instance = PQENVUtil()
|