yangsai@163.com 6 months ago
parent 7a7b8c0c13
commit 5f416064f8
  1. 2
      application/controllers/Api/Login.php

@ -42,7 +42,7 @@
$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}")->fRow(); $Userinfo = $this->Usermodel->field('*')->where("username='{$Username}' and type={$Type}")->fRow();
if($Userinfo['is_delete']==0){ if($Userinfo['is_delete']==1){
Tool_Fnc::apiMsg('试用结束,请续费', '500'); Tool_Fnc::apiMsg('试用结束,请续费', '500');
} }
empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo; empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo;

Loading…
Cancel
Save