diff --git a/frontend/index.html b/frontend/index.html index 0977657f..973cb220 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -12,6 +12,8 @@ + +
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 0872601c..d52d3a89 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -14,8 +14,6 @@ dayjs.locale('zh-cn'); dayjs.extend(duration); dayjs.extend(relativeTime); -window.CAP_CUSTOM_WASM_URL = window.location.origin + "/captcha/cap_wasm.js"; - // 预加载字体 preloadFonts().then(() => {}).catch((error) => { console.warn('字体预加载失败:', error); diff --git a/frontend/src/utils/common.tsx b/frontend/src/utils/common.tsx index cf3cd9b6..d30321c6 100644 --- a/frontend/src/utils/common.tsx +++ b/frontend/src/utils/common.tsx @@ -306,8 +306,10 @@ export async function captchaChallenge(): Promise { if (data.success) { return data.token } + console.error('[captcha] solve() returned success=false', data) return null - } catch { + } catch (err) { + console.error('[captcha] exception:', err) return null } }