Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
little-snow-fox committed Jan 12, 2023
1 parent 32e5978 commit c75e23f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
19 changes: 0 additions & 19 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ WeChat.launchMiniProgram({
});
```

#### ChooseInvoice (ChooseInvoice) 选择发票
#### ChooseInvoice (ChooseInvoice) 跳到小程序

ChooseInvoice

Expand Down
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,10 @@ export function chooseInvoice(data = {}) {
if (resp.errCode === 0) {
if (Platform.OS === 'android') {
const cardItemList = JSON.parse(resp.cardItemList);
resp.cards = cardItemList
? cardItemList.map((item) => ({
cardId: item.card_id,
encryptCode: item.encrypt_code,
}))
: [];
resp.cards = cardItemList.map((item) => ({
cardId: item.card_id,
encryptCode: item.encrypt_code,
}));
}
resolve(resp);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-wechat-lib",
"version": "1.1.24",
"version": "1.1.26",
"description": "react-native library for wechat app. 支持分享和拉起小程序。",
"main": "index.js",
"scripts": {
Expand Down
File renamed without changes.

0 comments on commit c75e23f

Please sign in to comment.