Commit 14bd9a91 authored by Alex朱枝文's avatar Alex朱枝文

数据解析bug修复

parent 2009cefb
......@@ -15,8 +15,10 @@ class YHButlerServiceViewModel {
let params: [String : Any] = ["yh_id": id]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.QiYu.userInfomation
let _ = YHNetRequest.getRequest(url: strUrl, params: params) { [weak self] json, code in
if json.code == 200 {
guard let data = json.data as? [Any], let dataString = data.yh_toJSONString() else {
guard let data = json.data, JSONSerialization.isValidJSONObject(data), let jsonData = try? JSONSerialization.data(withJSONObject: data, options: []), let dataString = jsonData.string(encoding: .utf8) else {
callBackBlock(nil, nil, YHErrorModel())
return
}
......
......@@ -124,7 +124,6 @@ extension YHButlerServiceManager {
/// 灰度打开
func isUatAllowed() -> Bool {
let allowed = YHUatHelper.shared.getUatModuleStatusBy(module: .QiYu_Service) == 1
//TODO: for test Alex
return allowed
}
......
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