Commit 9e281372 by 赵增煜

问诊人后端关闭验证码验证

parent 61ae272b
......@@ -70,11 +70,11 @@ public function add(Request $request)
return $this->failed('身份证格式错误');
}
$mobile = $data['mobile'];
$verificationCode = cache()->get("sms_verification_code_{$mobile}");
$code = $data['code'];
if ($verificationCode != $code) {
return $this->failed('验证码错误');
}
# $verificationCode = cache()->get("sms_verification_code_{$mobile}");
# $code = $data['code'];
# if ($verificationCode != $code) {
# return $this->failed('验证码错误');
# }
$idCardInfo = Util::getIdCardInfo($data['id_card']);
$patient->name = $data['name'];
$patient->id_card = $data['id_card'];
......@@ -107,11 +107,11 @@ public function update(Request $request)
return $this->failed('该问诊人不存在');
}
$mobile = $request->input('mobile');
$verificationCode = cache()->get("sms_verification_code_{$mobile}");
$code = $request->input('code');
if ($verificationCode != $code) {
return $this->failed('验证码错误');
}
# $verificationCode = cache()->get("sms_verification_code_{$mobile}");
# $code = $request->input('code');
# if ($verificationCode != $code) {
# return $this->failed('验证码错误');
# }
$data->name = $request->input('name');
$data->id_card = $id_card;
......
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