From 8f7b2de888e94e7bd3596b2619e1b1d0b80fb875 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sun, 22 Dec 2024 18:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAPI.php=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=BB=91=E5=AE=9A=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 6dc6ac5..8212cb0 100644 --- a/api.php +++ b/api.php @@ -994,7 +994,7 @@ switch ($act) { $result = $stmt->get_result(); $row = $result->fetch_array(); if (!empty($row)) { - $getPlayer = $mySQLi->prepare('select username,password from `player` where id=? limit 1'); + $getPlayer = $mySQLi->prepare('select username,password from player where username=? limit 1'); $getPlayer->bind_param('s', $row['username']); $getPlayer->execute(); $res = $getPlayer->get_result();