聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
插件名稱(chēng) | 支付 V2.4 |
插件作者 | 迅睿官方團(tuán)隊(duì) |
最近更新 | 2025-01-17 20:36:34 |
用戶(hù)中心的支付流水?dāng)?shù)據(jù),增加最大顯示年限設(shè)置 |
微信小程序支付,能正常發(fā)起下單,調(diào)用&s=api&c=pay&id=下單id的時(shí)候,返回服務(wù)器無(wú)此用戶(hù),代碼如下
uni.request({ url: getApp().globalData.api + '&api_auth_uid=' + uni.getStorageSync('uid') + '&api_auth_code=' + uni.getStorageSync('auth') + '&s=member&c=pay&m=index', data: { is_ajax: 1, 'pay[mark]': 'recharge', 'pay[money]': this.recharge.money, 'pay[type]': 'weixin', 'pay[is_xcx]': 1 }, header: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: 'POST', success: (res) => { console.log(res.data); if (res.data.code) { uni.request({ url: getApp().globalData.api + '&s=api&c=pay&id=' + res.data.code, header: { 'Content-Type': 'application/x-www-form-urlencoded' }, method: 'GET', success: (res) => { console.log(res.data); // 目前就是卡在這里,沒(méi)有正確返回調(diào)用支付的參數(shù) if (res.data.code) { // #ifdef MP-WEIXIN wx.requestPayment({ timeStamp: res.data.data.timeStamp, nonceStr: res.data.data.nonceStr, package: res.data.data.package, signType: 'MD5', paySign: res.data.data.paySign, success(res) { console.log(res); }, fail(res) { console.log(res); } }) // #endif } } }); } else { this.messageType = 'error' this.messageText = res.data.msg this.$refs.message.open() } } })
回復(fù)@迅睿框架聯(lián)合創(chuàng)始人 微信支付一定要綁定微信賬號(hào)?我原本沒(méi)計(jì)劃微信登錄,就做了賬號(hào)密碼登錄跟短信登錄
搞定了,就是整個(gè)流程挺麻煩的,要用戶(hù)綁定小程序的openid才行