|
@@ -24,7 +24,7 @@ class Login extends Controller{
|
|
|
$this->error('手机号格式不正确','','400');
|
|
|
}
|
|
|
|
|
|
- $code_info = Db::table('dx_sms')->where('phone',$data['phone'])->order('id desc')->find();
|
|
|
+ /*$code_info = Db::table('dx_sms')->where('phone',$data['phone'])->order('id desc')->find();
|
|
|
if (!$code_info){
|
|
|
$this->error('请先获取验证码','','400');
|
|
|
}
|
|
@@ -37,7 +37,7 @@ class Login extends Controller{
|
|
|
}
|
|
|
if (md5(md5($data['code'].$jwt_key)) != $code_info['code_pass']){
|
|
|
$this->error('验证码错误','','400');
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
$in_data['phone'] = $data['phone'];
|
|
|
$user_info = Db::table('dx_user')->where($in_data)->where('is_deleted',0)->find();
|