This commit is contained in:
+2
-2
@@ -42,8 +42,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. 检查 URL 中是否有授权回调的 code
|
// 3. 检查 URL 中是否有授权回调的 code(支付宝用 auth_code,微信用 code)
|
||||||
const code = urlParams.get('code');
|
const code = urlParams.get('code') || urlParams.get('auth_code');
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
// 有 code → 进入授权 Loading 页处理
|
// 有 code → 进入授权 Loading 页处理
|
||||||
|
|||||||
Reference in New Issue
Block a user