feat:付款码仅放行云闪付免密登录——验证码/未登录点付款码给引导提示
- 免密登录记 loginWay=ysf、验证码登录记 loginWay=sms,纳入账号缓存清理键(换账号不残留) - 详情页付款码桥就绪后校验登录方式,非 ysf 按登录态弹对应引导,不拉起容器付款码 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
d1e87498f5
commit
69a42cd6fc
@@ -138,6 +138,8 @@
|
||||
// 就会变成 Bearer [object Object],把所有鉴权接口全打挂
|
||||
const issued = typeof res.data.accessToken === 'string' ? res.data.accessToken : ''
|
||||
if (issued) uni.setStorageSync('token', issued)
|
||||
// xuchao: 标记本次会话为云闪付免密登录——商户详情付款码按此放行
|
||||
uni.setStorageSync('loginWay', 'ysf')
|
||||
this.$u.api.getEligibility({ phone: res.data.mobile, identityNo: res.data.idNo || '', name: res.data.name || '' }).then(eRes => {
|
||||
if (eRes.errcode === 0) {
|
||||
uni.setStorageSync('isAuth', eRes.data.isAuth)
|
||||
|
||||
Reference in New Issue
Block a user