mirror of
https://github.com/little-snow-fox/react-native-wechat-lib.git
synced 2025-12-06 15:26:49 +08:00
update sdk
This commit is contained in:
parent
32e59785d0
commit
c75e23f1e8
19
.gitignore
vendored
19
.gitignore
vendored
@ -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
|
|
||||||
@ -351,7 +351,7 @@ WeChat.launchMiniProgram({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### ChooseInvoice (ChooseInvoice) 选择发票
|
#### ChooseInvoice (ChooseInvoice) 跳到小程序
|
||||||
|
|
||||||
ChooseInvoice
|
ChooseInvoice
|
||||||
|
|
||||||
|
|||||||
10
index.js
10
index.js
@ -212,12 +212,10 @@ export function chooseInvoice(data = {}) {
|
|||||||
if (resp.errCode === 0) {
|
if (resp.errCode === 0) {
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
const cardItemList = JSON.parse(resp.cardItemList);
|
const cardItemList = JSON.parse(resp.cardItemList);
|
||||||
resp.cards = cardItemList
|
resp.cards = cardItemList.map((item) => ({
|
||||||
? cardItemList.map((item) => ({
|
cardId: item.card_id,
|
||||||
cardId: item.card_id,
|
encryptCode: item.encrypt_code,
|
||||||
encryptCode: item.encrypt_code,
|
}));
|
||||||
}))
|
|
||||||
: [];
|
|
||||||
}
|
}
|
||||||
resolve(resp);
|
resolve(resp);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-wechat-lib",
|
"name": "react-native-wechat-lib",
|
||||||
"version": "1.1.24",
|
"version": "1.1.26",
|
||||||
"description": "react-native library for wechat app. 支持分享和拉起小程序。",
|
"description": "react-native library for wechat app. 支持分享和拉起小程序。",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user