fix: 修改token获取方式

This commit is contained in:
zhangds 2024-03-13 16:34:00 +08:00
parent 2514e86eeb
commit 48adb9ab83
1 changed files with 3 additions and 1 deletions

View File

@ -257,6 +257,7 @@
// 静默授权
wxgzAuth(is_have_webview_voucher, token) {
console.log("token 1111 =>", token);
debugger
/* 公众号打开 */
if (is_have_webview_voucher && !this.openid) {
const key = localStorage.getItem('key');
@ -383,10 +384,11 @@
};
let wait = await req.axiosPost('/key/loginFromMobileKey', data).then(res => {
if (res.code == 200) {
this.wxgzAuth(res.data.is_have_webview_voucher, item);
form_data_res = res;
getTokenList.push(res.data.token);
istoGoods = true;
this.wxgzAuth(res.data.is_have_webview_voucher, res.data.token);
} else {
if (res.message == '活动暂停中') {
self.tiptext = res.message;