fix: 修改token获取方式
This commit is contained in:
parent
2514e86eeb
commit
48adb9ab83
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue