test
parent
1f5458146d
commit
85f201dced
|
@ -30,11 +30,12 @@
|
|||
}
|
||||
// 再判断回调是否为失败
|
||||
BOOL hasError = [[result allKeys] containsObject:@"errMsg"];
|
||||
NSLog(@"extensionApi [%i] reslut:%@", hasError, [result allKeys]);
|
||||
|
||||
if (hasError) {
|
||||
NSString *errMsg = result[@"errMsg"];
|
||||
NSString *errPrefix = [NSString stringWithFormat:@"%@:fail", name];
|
||||
NSLog(@"extensionApi2 [%@] reslut:%@", hasError, errMsg);
|
||||
|
||||
BOOL isFail = [errMsg hasPrefix:errPrefix];
|
||||
if (isFail) {
|
||||
NSLog(@"extensionApi reslut:fail");
|
||||
|
|
Loading…
Reference in New Issue