Commit 605a2a3b97f2bf759c7e92bcf7331b7c4f87bdc9

Authored by “zhangxu@cnlive.com”
1 parent 38aa2185

自定义key

metaCode/Classes/Main/Util/CNLiveCommonManager.swift
... ... @@ -35,6 +35,10 @@ class CNLiveCommonManager: NSObject{
35 35 CNLiveNetworking.setAllowRequestDefaultArgument(true)
36 36 CNLiveNetworking.setupShowDataResult(false)
37 37 CNLiveNetworking.setupDSRequest(true)
  38 + let custom_param = NSMutableDictionary()
  39 + custom_param.setValue(APPId_wjj, forKey: "appId")
  40 + custom_param.setValue(APPKey_wjj, forKey: "appKey")
  41 + CNLiveNetworking.setupCustomParam(custom_param as? [String : String])
38 42 CNLiveNetworking.requestNetwork(with: .GET, urlString: APPBaseWjjBUrl+"/Api/Index3/get_time", param: nil, cacheType: .networkOnly) { task, result, error in
39 43 if error == nil{
40 44 let res = (result as! NSDictionary)
... ...