From d3b8533b982d374af469a1fbaa42e7a48e60c7c2 Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 13:47:52 +0000 Subject: [PATCH] =?UTF-8?q?login-gate.js=EF=BC=9A=E9=9D=9E=20mp=20?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E6=9F=A5=20mp=20=E7=BB=9D=E5=AF=B9=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E7=9A=84=20auth/status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- js/login-gate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/login-gate.js b/js/login-gate.js index d222ca5..978710e 100644 --- a/js/login-gate.js +++ b/js/login-gate.js @@ -56,7 +56,9 @@ /* 和服务器对一次(在别的应用重新登录过 / 在别处退出过,本机标记会过期) */ if (O) { - fetch('/api/mp/public/auth/status?openid=' + encodeURIComponent(O)) /* 只读,查不到不建记录 */ + /* 11-07 从 taidong.douba.top 进来时那边没有 auth/status(404)→ 非 mp 域名改查 mp 绝对地址(mp 已允许跨域 *,体重会话 0c1f342e 提) */ + var ST = location.hostname === 'mp.yizhezhe.com' ? '' : 'https://mp.yizhezhe.com'; + fetch(ST + '/api/mp/public/auth/status?openid=' + encodeURIComponent(O)) /* 只读,查不到不建记录 */ .then(function (r) { return r.ok ? r.json() : null; }) .then(function (j) { if (!j || j.code !== 200 || !j.result) return;