fix: 修改回调地址

This commit is contained in:
zhangds 2024-03-13 18:14:44 +08:00
parent 3b25ac8d14
commit 7cfd43f1e0
1 changed files with 1 additions and 12 deletions

View File

@ -407,18 +407,7 @@
// 判断是否需要静默授权 // 判断是否需要静默授权
if (form_data_res.data.is_have_webview_voucher) { if (form_data_res.data.is_have_webview_voucher) {
axios({ location.href = `https://test.openapi.1688sup.com/wechat/oauth?jump=${location.origin}/homepage.html`
method: 'get',
url: `https://test.openapi.1688sup.com/wechat/oauth?jump=${location.origin}`,
})
.then(response => {
const locationHeader = response.headers['location'];
if (locationHeader) {
console.log('Location header:', locationHeader);
} else {
console.log('Location header not found in the response');
}
});
} }