From 165adcb532b4d2bc905edb501bfffbcd4200eca5 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Mon, 26 Oct 2026 23:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC57=E6=89=B9=E7=BB=AD15:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dpwd=5Fverified=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E2=80=94=E2=80=94Java=E5=8F=91=E6=95=B0=E5=AD=971?= =?UTF-8?q?=EF=BC=8CPHP=3D=3D=3D=20'1'=E4=B8=A5=E6=A0=BC=E6=AF=94=E8=BE=83?= =?UTF-8?q?=E6=B0=B8=E8=BF=9Cfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因: Java端JSON body发送"pwd_verified":1(整数) → PHP json_decode解析为整数1 → === '1'严格字符串比较 → 整数1 !== 字符串'1' → $pwdVerified永远false → 续14修复无效(条件改对了但值永远是false) - 修复: (string)getParam('pwd_verified','0') === '1' --- api/sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/sync.php b/api/sync.php index e0deb8e..66f7d89 100644 --- a/api/sync.php +++ b/api/sync.php @@ -5145,7 +5145,7 @@ function webEmailBindResult() { $action = getParam('action', ''); // approve / reject / offline / failed $player = getParam('player', ''); $failReason = getParam('fail_reason', ''); - $pwdVerified = (getParam('pwd_verified', '0') === '1'); + $pwdVerified = ((string)getParam('pwd_verified', '0') === '1'); if ($savedGetAction !== null) $_GET['action'] = $savedGetAction; if (!$requestId) error('缺少request_id');