Commit a126c59e by 赵增煜

清除验证码

parent 09273752
......@@ -146,9 +146,9 @@ public function bindRole(Request $request)
if ($verificationCode != $code) {
return $this->failed('验证码错误,请重新发送!');
}
# 验证通过清除验证码
// 验证通过清除验证码
cache()->forget("sms_verification_code_{$mobile}");
// 验证手机号是否存在
if ($login_type == User::LOGIN_TYPE_PHARMACY) {
$pharmacy = PharmacyModel::query()->where('mobile', $mobile)->first();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment