yangsai@163.com 8 months ago
parent e93ccdfb46
commit 7f9475320d
  1. 2
      application/controllers/Admin/Login.php

@ -9,6 +9,8 @@ class Admin_LoginController extends Ctrl_Admin{
public function LoginAction(){ public function LoginAction(){
$tAMO = new AdminModel; $tAMO = new AdminModel;
$REQUEST =json_decode(file_get_contents('php://input'),true); $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']); $pPasswd = empty($REQUEST['password'])?Tool_Fnc::ajaxMsg('密码不能为空'):trim($REQUEST['password']);
$pName = empty($REQUEST['username'])?Tool_Fnc::ajaxMsg('用户名不能为空'):Tool_Fnc::safe_string($REQUEST['username']); $pName = empty($REQUEST['username'])?Tool_Fnc::ajaxMsg('用户名不能为空'):Tool_Fnc::safe_string($REQUEST['username']);
$AdminInfo = $tAMO->field("*")->where("admin_username='{$pName}'")->fRow(); $AdminInfo = $tAMO->field("*")->where("admin_username='{$pName}'")->fRow();

Loading…
Cancel
Save