|
@@ -60,7 +60,7 @@ class Login extends Auth
|
|
|
'verify.require' => '验证码不能为空!',
|
|
|
'password.require' => '登录密码不能为空!',
|
|
|
]);
|
|
|
- if (!MessageService::instance()->checkVerifyCode($data['verify'], $data['phone'])) {
|
|
|
+ if (!MessageService::instance()->checkCode($data['verify'], $data['phone'],2)) {
|
|
|
$this->error('手机短信验证失败!');
|
|
|
}
|
|
|
$map = ['phone' => $data['phone'], 'deleted' => 0];
|
|
@@ -107,7 +107,7 @@ class Login extends Auth
|
|
|
'verify.require'=>'验证码必须',
|
|
|
'password.require'=>'密码必须',
|
|
|
]);
|
|
|
- if (!MessageService::instance()->checkVerifyCode($data['verify'], $data['phone'])) {
|
|
|
+ if (!MessageService::instance()->checkCode($data['verify'], $data['phone'],3)) {
|
|
|
$this->error('手机短信验证失败!');
|
|
|
}
|
|
|
$user=DataUser::where('phone',$data['phone'])->find();
|