暂时去除验证码
This commit is contained in:
parent
a169d82377
commit
e3e3839b15
@ -44,7 +44,7 @@ class CodeService extends BaseService
|
||||
$template_param['code'] = mt_rand(1,9) . (int)substr($generator->generate(),-3);
|
||||
|
||||
// 发送短信
|
||||
// Dysms::sendSms($phone,$template_param,$template_code,1);
|
||||
Dysms::sendSms($phone,$template_param,$template_code,1);
|
||||
|
||||
if (empty($result)){
|
||||
$redis_value = 1;
|
||||
|
||||
@ -230,14 +230,14 @@ class LoginService extends BaseService
|
||||
|
||||
$redis = $this->container->get(Redis::class);
|
||||
// 验证验证码
|
||||
$sms_code = $redis->get("login_code" . $phone);
|
||||
if (empty($sms_code)){
|
||||
return fail(HttpEnumCode::CODE_EXPIRED);
|
||||
}
|
||||
|
||||
if ($sms_code != $code){
|
||||
return fail(HttpEnumCode::CODE_ERROR);
|
||||
}
|
||||
// $sms_code = $redis->get("login_code" . $phone);
|
||||
// if (empty($sms_code)){
|
||||
// return fail(HttpEnumCode::CODE_EXPIRED);
|
||||
// }
|
||||
//
|
||||
// if ($sms_code != $code){
|
||||
// return fail(HttpEnumCode::CODE_ERROR);
|
||||
// }
|
||||
|
||||
Db::beginTransaction();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user