|
...
|
...
|
@@ -143,10 +143,10 @@ class UserLoginLogic |
|
|
|
$smsInfo = $smsModel->formatQuery(['mobile'=>$mobile,'type'=>$smsModel::TYPE_LOGIN])->orderBy('id','desc')->first();
|
|
|
|
if(!empty($smsInfo)){
|
|
|
|
if(($password != $smsInfo['code']) || ($smsInfo['created_at'] < date('Y-m-d H:i:s',time() - 300))){
|
|
|
|
$this->fail('账号密码错误/验证码错误',Code::USER_REGISTER_ERROE);
|
|
|
|
$this->fail('账号密码错误/验证码错误');
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$this->fail('账号密码错误/验证码错误',Code::USER_REGISTER_ERROE);
|
|
|
|
$this->fail('账号密码错误/验证码错误');
|
|
|
|
}
|
|
|
|
$list = $this->model->list(['mobile'=>$this->param['mobile'],'status'=>$this->model::STATUS_ZERO],['id','project_id']);
|
|
|
|
return $this->success($list);
|
...
|
...
|
|