From 4d4848ecda65adf399cd15a83049a4435e9a06c7 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期四, 08 八月 2024 11:35:21 +0800
Subject: [PATCH] feat(支付): 登录逻辑修噶
---
pay/scanpay.vue | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/pay/scanpay.vue b/pay/scanpay.vue
index 618c577..84d955b 100644
--- a/pay/scanpay.vue
+++ b/pay/scanpay.vue
@@ -228,16 +228,19 @@
this.cid = opt.cid
this.init()
}
- if (opt.code || opt.auth_code) {
+ if (opt.code || opt.auth_code || opt.userAuthCode) {
let params = {
code: opt.code
}
let code = opt.code
- if (this.payWay == 2&&opt.state == 1 ) {
+ if (this.payWay == 2&&opt.state == 1 ) { //寰俊
params.getUserInfo = 1
}
- if (this.payWay == 5) {
+ if (this.payWay == 5) { //鏀粯瀹�
params.code = opt.auth_code
+ }
+ if (this.payWay == 15) { //浜戦棯浠�
+ code = opt.userAuthCode
}
const cd = uni.getStorageSync('cd')
if (code === cd) {
@@ -290,6 +293,9 @@
if (res.unionid) {
uni.setStorageSync('UNIONID' + this.payWay, res.unionid)
}
+ if (res.aLiUserId) {
+ uni.setStorageSync('ALIUSERID' + this.payWay, res.aLiUserId)
+ }
this.UNIONID = res.unionid
uni.setStorageSync(ACCESSTOKEN, res.token)
uni.setStorageSync('IS_NEW', res.isNew)
--
Gitblit v1.9.1