From 6ddf6ba45545bdde7b6d01d6352c4110f0ecbaaf Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 23 May 2024 16:12:03 +0800 Subject: [PATCH] YS --- application/controllers/Api/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Api/Login.php b/application/controllers/Api/Login.php index 4d73e50..ca19649 100644 --- a/application/controllers/Api/Login.php +++ b/application/controllers/Api/Login.php @@ -179,7 +179,7 @@ $username = empty($this->POST['username'])||!isset($this->POST['username'])? Tool_Fnc::apiMsg('请输入账号', '500'):Tool_fnc::safe_string($this->POST['username']); $smsModel = new SmscodeModel(); $userinfo = $this->Usermodel->field('id')->where("phone='{$phone}' and is_delete=0 and username='{$username}' and status=1")->fRow(); - if(empty($codedata))Tool_Fnc::apiMsg('账号不存在', '500'); + if(empty($userinfo))Tool_Fnc::apiMsg('账号不存在', '500'); $codedata = $smsModel->field('id')->where("phone='{$phone}' and code='{$code}' and username='{$username}' and status=0")->fRow(); if(empty($codedata))Tool_Fnc::apiMsg('验证码不正确', '500'); $codedata['status']=1;