login-gate.js 改查只读的 auth/status(不建空记录)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
/* 和服务器对一次(在别的应用重新登录过 / 在别处退出过,本机标记会过期) */
|
/* 和服务器对一次(在别的应用重新登录过 / 在别处退出过,本机标记会过期) */
|
||||||
if (O) {
|
if (O) {
|
||||||
fetch('/api/mp/public/auth/profile?openid=' + encodeURIComponent(O))
|
fetch('/api/mp/public/auth/status?openid=' + encodeURIComponent(O)) /* 只读,查不到不建记录 */
|
||||||
.then(function (r) { return r.ok ? r.json() : null; })
|
.then(function (r) { return r.ok ? r.json() : null; })
|
||||||
.then(function (j) {
|
.then(function (j) {
|
||||||
if (!j || j.code !== 200 || !j.result) return;
|
if (!j || j.code !== 200 || !j.result) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user