Skip to content

Commit

Permalink
fix ios compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvanMo committed May 11, 2023
1 parent cc2b838 commit e38b10f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ PODS:
- Flutter (1.0.0)
- fluwx (0.0.1):
- Flutter
- fluwx/no_pay (= 0.0.1)
- fluwx/no_pay (0.0.1):
- fluwx/pay (= 0.0.1)
- fluwx/pay (0.0.1):
- Flutter
- "OpenWeChatSDKNoPay (~> 2.0.2+1)"
- WechatOpenSDK-XCFramework (~> 2.0.2)
- integration_test (0.0.1):
- Flutter
- OpenWeChatSDKNoPay (2.0.2)
- WechatOpenSDK-XCFramework (2.0.2)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -17,7 +17,7 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- OpenWeChatSDKNoPay
- WechatOpenSDK-XCFramework

EXTERNAL SOURCES:
Flutter:
Expand All @@ -29,9 +29,9 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
fluwx: f608fff0e3a8c30199b626fed590d83cdd820a52
fluwx: 26f146e29ad3fc4e5c41c82891b420adcdb2fb4d
integration_test: 13825b8a9334a850581300559b8839134b124670
OpenWeChatSDKNoPay: 59a9628a746352bb400329cb7f12e6dc7096bf6e
WechatOpenSDK-XCFramework: acdeeda129efbef9532bca8a10c24e1b4b8c7d69

PODFILE CHECKSUM: beab77b38961de946f08660e554f80ac174dc842

Expand Down
8 changes: 4 additions & 4 deletions ios/Classes/FluwxPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,7 @@ - (void)onResp:(BaseResp *)resp {
}
#ifndef NO_PAY
else if ([resp isKindOfClass:[WXPayInsuranceResp class]]) {
if ([_delegate respondsToSelector:@selector(managerDidRecvPayInsuranceResponse:)]) {
[_delegate managerDidRecvPayInsuranceResponse:(WXPayInsuranceResp *) resp];
}

} else if ([resp isKindOfClass:[PayResp class]]) {

PayResp *payResp = (PayResp *) resp;
Expand All @@ -602,7 +600,9 @@ - (void)onResp:(BaseResp *)resp {
@"returnKey": [FluwxStringUtil nilToEmpty:payResp.returnKey],
};
[FluwxDelegate defaultManager].extData = nil;
[fluwxMethodChannel invokeMethod:@"onPayResponse" arguments:result];
if(channel != nil){
[channel invokeMethod:@"onPayResponse" arguments:result];
}
} else if ([resp isKindOfClass:[WXNontaxPayResp class]]) {

}
Expand Down

0 comments on commit e38b10f

Please sign in to comment.