批量优化

This commit is contained in:
hero920103 committed 2026-10-03 23:46:55 +08:00
1 parent e3db229f41
commit aa92ca40a2
79 files changed
+7495 -1104

No files matched your search

+3 -2
View File
@@ -116,10 +116,11 @@ function showGeetest4App(captchaId) {
/**
* 弹出极验 4.0 验证
* @param {string} [captchaIdOverride] 已从统一认证 /auth/verify-config 拿到 captcha_id 时直接传入
* @returns {Promise<{ captcha_id, lot_number, pass_token, gen_time, captcha_output }>}
*/
export async function showGeetest4() {
const captchaId = await fetchGeetest4CaptchaId()
export async function showGeetest4(captchaIdOverride = '') {
const captchaId = captchaIdOverride || (await fetchGeetest4CaptchaId())
if (!captchaId) {
throw new Error('未配置极验 captcha_id')
}