update sdk

This commit is contained in:
snowfox 2023-01-12 18:17:07 +08:00
parent 32e59785d0
commit c75e23f1e8
5 changed files with 6 additions and 27 deletions

19
.gitignore vendored
View File

@ -1,19 +0,0 @@
.DS_Store
node_modules
/android/build
/android/RCTWeChat.iml
# ios
ios/build
# Xcode
build/
DerivedData/
xcuserdata
Pods/
*.xcuserstate
*.ipa
*.dSYM.zip
*.dSYM
.idea
android/.gradle

View File

@ -351,7 +351,7 @@ WeChat.launchMiniProgram({
});
```
#### ChooseInvoice (ChooseInvoice) 选择发票
#### ChooseInvoice (ChooseInvoice) 跳到小程序
ChooseInvoice

View File

@ -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) => ({
resp.cards = cardItemList.map((item) => ({
cardId: item.card_id,
encryptCode: item.encrypt_code,
}))
: [];
}));
}
resolve(resp);
} else {

View File

@ -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": {