Commit 92a21bb7 by 赵增煜

注释新增问诊人验证码校验

parent cbe3d5ed
......@@ -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