Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
droplet-js committed Apr 7, 2022
1 parent e07e04f commit 6b9aa84
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions ios/Classes/WechatKitPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -612,19 +612,17 @@ - (void)onResp:(BaseResp *)resp {
[dictionary setValue:openBusinessWebviewResp.result forKey:ARGUMENT_KEY_RESULT_RESULTINFO];
}
[_channel invokeMethod:METHOD_ONOPENBUSINESSWEBVIEWRESP arguments:dictionary];
} else {
}
#ifndef NO_PAY
if ([resp isKindOfClass:[PayResp class]]) {
// 支付
if (resp.errCode == WXSuccess) {
PayResp *payResp = (PayResp *)resp;
[dictionary setValue:payResp.returnKey
forKey:ARGUMENT_KEY_RESULT_RETURNKEY];
}
[_channel invokeMethod:METHOD_ONPAYRESP arguments:dictionary];
else if ([resp isKindOfClass:[PayResp class]]) {
// 支付
if (resp.errCode == WXSuccess) {
PayResp *payResp = (PayResp *)resp;
[dictionary setValue:payResp.returnKey forKey:ARGUMENT_KEY_RESULT_RETURNKEY];
}
#endif
[_channel invokeMethod:METHOD_ONPAYRESP arguments:dictionary];
}
#endif
}

#pragma mark - WechatAuthAPIDelegate
Expand Down

0 comments on commit 6b9aa84

Please sign in to comment.