phi_2.44.5.1
Sean 2024-05-20 16:10:39 +08:00
parent 38fae22243
commit 78e372b039
1 changed files with 9 additions and 15 deletions

View File

@ -29,23 +29,17 @@
return; return;
} }
// //
// BOOL hasError = [[result allKeys] containsObject:@"errMsg"]; BOOL hasError = [[result allKeys] containsObject:@"errMsg"];
// if (hasError) {
// NSString *errMsg = result[@"errMsg"];
// NSString *errPrefix = [NSString stringWithFormat:@"%@:fail", name];
// BOOL isFail = [errMsg hasPrefix:errPrefix];
// if (isFail) {
// NSLog(@"extensionApi reslut:fail");
// callback(FATExtensionCodeFailure,nil);
// return;
// }
// }
BOOL hasError = [[result allKeys] containsObject:@"phizErr"];
if (hasError) { if (hasError) {
callback(FATExtensionCodeFailure,result[@"phizErr"]); NSString *errMsg = result[@"errMsg"];
NSString *errPrefix = [NSString stringWithFormat:@"%@:fail", name];
BOOL isFail = [errMsg hasPrefix:errPrefix];
if (isFail) {
NSLog(@"extensionApi reslut:fail");
callback(FATExtensionCodeFailure,nil);
return; return;
} }
}
// //
NSLog(@"extensionApi callback:%@",result); NSLog(@"extensionApi callback:%@",result);
callback(FATExtensionCodeSuccess,result); callback(FATExtensionCodeSuccess,result);