Commit 821d2c98588f1a83884679277fc80258bfd27d69

Authored by “张旭”
1 parent a07e14ef

上传图片/视频的appid改为CNLiveMCEnvironmentManager.shared.appId

metaCode/Classes/Common/Util/CNLiveCommonQiniuTool.swift
... ... @@ -90,7 +90,7 @@ class UploadManager: NSObject {
90 90 /// - resultBlock: 结果
91 91 static private func uploadData(madiaData: NSData, key: String, progress: ProgressBlcok?, success: SuccessBlock?) {
92 92 let param = NSMutableDictionary()
93   - param.setValue(APPId, forKey: "appId")
  93 + param.setValue(CNLiveMCEnvironmentManager.shared.appId, forKey: "appId")
94 94 param.setValue("POST", forKey: "verb")
95 95 param.setValue("2", forKey: "storageType")
96 96 param.setValue(kBucketName_QN, forKey: "bucket")
... ... @@ -101,7 +101,7 @@ class UploadManager: NSObject {
101 101 CNLiveNetworking.setupShowResult(true)
102 102 CNLiveNetworking.setAllowRequestDefaultArgument(true)
103 103 CNLiveNetworking.setupShowDataResult(false)
104   - CNLiveNetworking.setupSignRequestKey(APPKey)//APPKey_wjj APPKey
  104 + CNLiveNetworking.setupSignRequestKey(CNLiveMCEnvironmentManager.shared.appKey)//APPKey_wjj APPKey
105 105  
106 106 CNLiveNetworking.requestNetwork(with: .POST, urlString: "\(CNLiveMCEnvironmentManager.shared.img_token_url)/vod_epg/getUploadAuthForApp", param: param as! [String : String], cacheType: .networkOnly) { task, result, error in
107 107 hiddenLoading()
... ...