| | |
| | | } |
| | | const plat = getPlat() |
| | | if (plat == 2) { //微信 |
| | | const OPENID = uni.getStorageSync('OPENID' + plat) || null |
| | | const UNIONID = uni.getStorageSync('UNIONID' + plat) || null |
| | | const OPENID = uni.getStorageSync('OPENID') || null |
| | | const UNIONID = uni.getStorageSync('UNIONID') || null |
| | | if (OPENID) { |
| | | x.header['Openid'] = OPENID; |
| | | } |
| | |
| | | } |
| | | } |
| | | if (plat == 5) { //支付宝 |
| | | const ALIUSERID = uni.getStorageSync('ALIUSERID' + plat) || null |
| | | const ALIUSERID = uni.getStorageSync('ALIUSERID') || null |
| | | if (ALIUSERID) { |
| | | x.header['Aliuserid'] = ALIUSERID; |
| | | } |
| | | } |
| | | if (plat == 15) { //云闪付 |
| | | const UNIONPAYID = uni.getStorageSync('UNIONPAYID ' + plat) || null |
| | | const UNIONPAYID = uni.getStorageSync('UNIONPAYID') || null |
| | | if (UNIONPAYID) { |
| | | x.header['Unionpayid '] = UNIONPAYID; |
| | | } |