去除验证码验证

This commit is contained in:
2023-03-28 18:48:01 +08:00
parent d0d1e7494d
commit f00894fe9f
4 changed files with 344 additions and 28 deletions
+10 -10
View File
@@ -242,16 +242,16 @@ class LoginService extends BaseService
$user_type = $this->request->input('user_type');
$wx_code = $this->request->input('wx_code');
$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);
}
// $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);
// }
try {
$weChat = new Wechat($user_type);