Commit f167bc55 by 赵增煜

取消验证码验证

parent 7cc5c952
......@@ -80,11 +80,11 @@ public function add(Request $request)
}
$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'];
......@@ -130,11 +130,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