|
@@ -171,10 +171,10 @@ class MCHttpUtil: NSObject {
|
|
|
error?(MCHttpResponseError(data:nil,msg:nil,status:.cancel,code:0))
|
|
|
}
|
|
|
else if (e as NSError).code == MCHttpStatus.timeout.rawValue{
|
|
|
- error?(MCHttpResponseError(data:nil,msg:"请求超时,请重试",status:.timeout,code:0))
|
|
|
+ error?(MCHttpResponseError(data:nil,msg:LanguagesUtil.createTextBy(Ctext: "请求超时", Etext: "Request timeout"),status:.timeout,code:0))
|
|
|
}
|
|
|
else{
|
|
|
- error?(MCHttpResponseError(data:nil,msg:"网络请求失败",status:.failure,code:0))
|
|
|
+ error?(MCHttpResponseError(data:nil,msg:LanguagesUtil.createTextBy(Ctext: "网络请求失败", Etext: "Network request failed"),status:.failure,code:0))
|
|
|
}
|
|
|
}
|
|
|
}
|