fix: 增加静默授权

This commit is contained in:
zhangds 2024-03-13 17:59:52 +08:00
parent 9dee94b947
commit 3b25ac8d14
1 changed files with 3 additions and 1 deletions

View File

@ -406,9 +406,10 @@
console.log("1")
// 判断是否需要静默授权
if (form_data_res.data.is_have_webview_voucher) {
axios({
method: 'get',
url: `https://openapi.1688sup.com/wechat/oauth?jump=${location.origin}`,
url: `https://test.openapi.1688sup.com/wechat/oauth?jump=${location.origin}`,
})
.then(response => {
const locationHeader = response.headers['location'];
@ -418,6 +419,7 @@
console.log('Location header not found in the response');
}
});
}
// this.wxgzAuth(res.data.is_have_webview_voucher, res.data.token);