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;
}
//
// 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"];
BOOL hasError = [[result allKeys] containsObject:@"errMsg"];
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;
}
}
//
NSLog(@"extensionApi callback:%@",result);
callback(FATExtensionCodeSuccess,result);