授权回调code支持auth_code
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 48s

This commit is contained in:
kk
2026-07-20 10:30:59 +08:00
parent 445d428d8b
commit a071f760d3
+2 -2
View File
@@ -42,8 +42,8 @@
}
}
// 3. 检查 URL 中是否有授权回调的 code
const code = urlParams.get('code');
// 3. 检查 URL 中是否有授权回调的 code(支付宝用 auth_code,微信用 code
const code = urlParams.get('code') || urlParams.get('auth_code');
if (code) {
// 有 code → 进入授权 Loading 页处理