diff --git a/ios/Classes/Api/MOP_registerExtensionApi.m b/ios/Classes/Api/MOP_registerExtensionApi.m index 6451e03..e726d6f 100644 --- a/ios/Classes/Api/MOP_registerExtensionApi.m +++ b/ios/Classes/Api/MOP_registerExtensionApi.m @@ -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");