yangsai@163.com 6 months ago
parent 3af407c76d
commit e6806e0aa7
  1. 5
      application/controllers/Api/Login.php

@ -41,7 +41,10 @@
//密码 //密码
$Password = empty($this->POST['Password'])||!isset($this->POST['Password'])? Tool_Fnc::apiMsg('账号密码错误', '500'):Tool_fnc::safe_string($this->POST['Password']); $Password = empty($this->POST['Password'])||!isset($this->POST['Password'])? Tool_Fnc::apiMsg('账号密码错误', '500'):Tool_fnc::safe_string($this->POST['Password']);
$Type = empty($this->POST['Type'])||!isset($this->POST['Type'])? Tool_Fnc::apiMsg('选择人员类型', '500'):Tool_fnc::safe_string($this->POST['Type']); $Type = empty($this->POST['Type'])||!isset($this->POST['Type'])? Tool_Fnc::apiMsg('选择人员类型', '500'):Tool_fnc::safe_string($this->POST['Type']);
$Userinfo = $this->Usermodel->field('*')->where("username='{$Username}' and type={$Type} and is_delete=0")->fRow(); $Userinfo = $this->Usermodel->field('*')->where("username='{$Username}' and type={$Type}")->fRow();
if($Userinfo['is_delete']==0){
Tool_Fnc::apiMsg('试用结束,请续费', '500')
}
empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo; empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo;
$Userinfo['password']!=md5($Password.Yaf_Registry::get("config")->psd->default->appsecret)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo['password']; $Userinfo['password']!=md5($Password.Yaf_Registry::get("config")->psd->default->appsecret)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo['password'];
unset($Userinfo['password']); unset($Userinfo['password']);

Loading…
Cancel
Save