1
This commit is contained in:
@@ -399,6 +399,7 @@ autoShowBusinessError:YES
|
||||
NSString *msg = KBBizMessageFromJSONObject(dict) ?: KBLocalized(@"Server error");
|
||||
if (autoShowBusinessError) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[KBHUD dismiss];
|
||||
[KBHUD showInfo:msg];
|
||||
});
|
||||
}
|
||||
@@ -412,6 +413,7 @@ autoShowBusinessError:YES
|
||||
return;
|
||||
}
|
||||
// code 缺失或为成功,按正常成功回调
|
||||
[KBHUD dismiss];
|
||||
if (completion) completion(dict, response, nil);
|
||||
} else {
|
||||
// 预期 JSON,但未检测到 JSON 内容
|
||||
|
||||
Reference in New Issue
Block a user