diff --git a/application/controllers/Api/Login.php b/application/controllers/Api/Login.php index 76ffa35..cf9f2c8 100644 --- a/application/controllers/Api/Login.php +++ b/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']); $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(); - if($Userinfo['is_delete']==0){ + if($Userinfo['is_delete']==1){ Tool_Fnc::apiMsg('试用结束,请续费', '500'); } empty($Userinfo)?Tool_Fnc::apiMsg('账号密码错误', '500'):$Userinfo;