From 7f9475320d0ccf8d5acead9cf173689b740e0d03 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Tue, 21 May 2024 17:37:46 +0800 Subject: [PATCH] YS --- application/controllers/Admin/Login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Admin/Login.php b/application/controllers/Admin/Login.php index b3da467..4020c00 100644 --- a/application/controllers/Admin/Login.php +++ b/application/controllers/Admin/Login.php @@ -9,6 +9,8 @@ class Admin_LoginController extends Ctrl_Admin{ public function LoginAction(){ $tAMO = new AdminModel; $REQUEST =json_decode(file_get_contents('php://input'),true); + var_dump($REQUEST); + var_dump($_POST);;die; $pPasswd = empty($REQUEST['password'])?Tool_Fnc::ajaxMsg('密码不能为空'):trim($REQUEST['password']); $pName = empty($REQUEST['username'])?Tool_Fnc::ajaxMsg('用户名不能为空'):Tool_Fnc::safe_string($REQUEST['username']); $AdminInfo = $tAMO->field("*")->where("admin_username='{$pName}'")->fRow();