From 85f201dcedbb658bd84b824cbadd8e45b6e50129 Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 14 Jun 2024 18:14:42 +0800 Subject: [PATCH] test --- ios/Classes/Api/MOP_registerExtensionApi.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");