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