第57批续15: 修复pwd_verified类型不匹配——Java发数字1,PHP=== '1'严格比较永远false
- 根因: Java端JSON body发送"pwd_verified":1(整数) → PHP json_decode解析为整数1
→ === '1'严格字符串比较 → 整数1 !== 字符串'1' → $pwdVerified永远false
→ 续14修复无效(条件改对了但值永远是false)
- 修复: (string)getParam('pwd_verified','0') === '1'
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user