Commit 66a12e0e authored by 刘俊宏's avatar 刘俊宏

修改网络请求时间最长时间

parent 192205e2
......@@ -103,7 +103,7 @@ extension NetworkRequest {
let infoD = Bundle.main.infoDictionary
let ver = infoD!["CFBundleShortVersionString"]
request.addValue("\(ver!)",forHTTPHeaderField:"CLIENT_VERSION")
request.timeoutInterval = 10
request.timeoutInterval = 15
request.httpBody = try! JSONSerialization.data(withJSONObject: params, options: [])
Alamofire.request(request).responseJSON { (response) in
......@@ -190,7 +190,7 @@ extension NetworkRequest {
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.timeoutInterval = 10
request.timeoutInterval = 15
request.httpBody = try! JSONSerialization.data(withJSONObject: params, options: [])
Alamofire.request(request).responseJSON { (response) in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment