This commit is contained in:
liyuhua
2024-03-01 16:54:46 +08:00
parent 4bac7ef12f
commit c8072c650b
159 changed files with 8162 additions and 5054 deletions

View File

@@ -50,7 +50,7 @@ class YMNetworkHelper: NSObject {
fail:SessionCallFail?) -> Void {
let encrypteChonParma = baseParameters.merging(params) {$1}
sessionNetMana.request(host+path, method: type, parameters: encrypteChonParma,encoding: encoding,headers: header)
.validate(contentType: ["application/json"])
.validate(contentType: ["application/json","text/plain"])
.responseJSON { [weak self] (response) in
self?.analyzeThe(response1: response, succeed2: succeed, fail3: fail,uuid4:"")
}