mirror of
https://github.com/little-snow-fox/react-native-wechat-lib.git
synced 2025-12-06 15:26:49 +08:00
card add appid
This commit is contained in:
parent
ddf5a56d0b
commit
85b032bedc
1
index.d.ts
vendored
1
index.d.ts
vendored
@ -153,6 +153,7 @@ declare module 'react-native-wechat-lib' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface Invoice {
|
export interface Invoice {
|
||||||
|
appId: string;
|
||||||
cardId: string;
|
cardId: string;
|
||||||
encryptCode: string;
|
encryptCode: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -607,7 +607,7 @@ RCT_EXPORT_METHOD(pay:(NSDictionary *)data
|
|||||||
body[@"errStr"] = r.errStr;
|
body[@"errStr"] = r.errStr;
|
||||||
NSMutableArray *arr = [[NSMutableArray alloc] init];
|
NSMutableArray *arr = [[NSMutableArray alloc] init];
|
||||||
for (WXCardItem* cardItem in r.cardAry) {
|
for (WXCardItem* cardItem in r.cardAry) {
|
||||||
NSMutableDictionary *item = @{@"cardId":cardItem.cardId,@"encryptCode":cardItem.encryptCode}.mutableCopy;
|
NSMutableDictionary *item = @{@"cardId":cardItem.cardId,@"encryptCode":cardItem.encryptCode,@"appId":cardItem.appID}.mutableCopy;
|
||||||
[arr addObject:item];
|
[arr addObject:item];
|
||||||
}
|
}
|
||||||
body[@"cards"] = arr;
|
body[@"cards"] = arr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user