注释验证码
This commit is contained in:
parent
70920df001
commit
f7f60c47d9
@ -40,16 +40,16 @@ class UserController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
$params = (new UserValidate())->post()->goCheck('storeAdd');
|
$params = (new UserValidate())->post()->goCheck('storeAdd');
|
||||||
$code = $params['code'];
|
$code = $params['code'];
|
||||||
if($code && $params['mobile']){
|
// if($code && $params['mobile']){
|
||||||
$remark = $params['mobile'].'_userArchives';
|
// $remark = $params['mobile'].'_userArchives';
|
||||||
$codeCache = Cache::get($remark);
|
// $codeCache = Cache::get($remark);
|
||||||
if(empty($codeCache)){
|
// if(empty($codeCache)){
|
||||||
return $this->fail('验证码不存在');
|
// return $this->fail('验证码不存在');
|
||||||
}
|
// }
|
||||||
if ($codeCache != $code) {
|
// if ($codeCache != $code) {
|
||||||
return $this->fail('验证码错误');
|
// return $this->fail('验证码错误');
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
UserLogic::StoreAdd($params);
|
UserLogic::StoreAdd($params);
|
||||||
if (UserLogic::hasError() ) {
|
if (UserLogic::hasError() ) {
|
||||||
return $this->fail(UserLogic::getError());
|
return $this->fail(UserLogic::getError());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user