From b6914c52f94a77c81ccc28061636486ccfd125ce Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Mon, 26 Oct 2026 23:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC57=E6=89=B9=E7=BB=AD14:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dapprove=E5=88=86=E6=94=AFpwdVerified=E6=97=B6expire=5F?= =?UTF-8?q?at=E6=8B=A6=E6=88=AA=E5=AF=BC=E8=87=B4=E5=8D=A1=E5=9C=A8approve?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因: pwdVerified=true时PHP仍要求now<=expire_at(60秒时效)才completed → 批准+验密在approve之后,expire_at早过→状态卡在approved → 前端轮询等不到completed→弹窗卡在'正在验证密码' - 修复: pwdVerified=true直接completed,expire_at只约束pending/notified阶段 --- api/sync.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/sync.php b/api/sync.php index ab4757c..e0deb8e 100644 --- a/api/sync.php +++ b/api/sync.php @@ -5170,7 +5170,8 @@ function webEmailBindResult() { } if ($action === 'approve') { - if ($pwdVerified && $now <= (int)$row['expire_at']) { + if ($pwdVerified) { + // ★ 第57批续14: pwdVerified=true→Java已验密码,直接完成,expire_at只约束pending/notified阶段 $bindEmail = (string)$row['email']; if (!$bindEmail || !filter_var($bindEmail, FILTER_VALIDATE_EMAIL)) error('请求数据异常'); if (acctCompleteEmailBind($requestId, $player, $bindEmail)) {