第57批续14: 修复approve分支pwdVerified时expire_at拦截导致卡在approved

- 根因: pwdVerified=true时PHP仍要求now<=expire_at(60秒时效)才completed
  → 批准+验密在approve之后,expire_at早过→状态卡在approved
  → 前端轮询等不到completed→弹窗卡在'正在验证密码'
- 修复: pwdVerified=true直接completed,expire_at只约束pending/notified阶段
This commit is contained in:
ypsdf1
2026-10-26 23:14:34 +08:00
parent 2e04d9cf36
commit b6914c52f9
+2 -1
View File
@@ -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)) {