fix: 增加静默授权
This commit is contained in:
parent
9dee94b947
commit
3b25ac8d14
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue