Commit 68e1c496 by 赵增煜

身份证

parent c08299e8
......@@ -144,7 +144,8 @@ protected function form()
return $form->response()->error('手机号格式错误');
}
$idValidator = new IdValidator();
if ($form->id_card && ! $idValidator->isValid($form->id_card)) {
//if ($form->id_card && ! $idValidator->isValid($form->id_card)) {
if (strlen($form->id_card) != 18) {
return $form->response()->error('身份证格式错误');
}
});
......
......@@ -25,7 +25,7 @@ public function InquirytList(Request $request)
if ($drug_ids) {
Log::info('drug_ids=>'.json_encode($drug_ids).'===>'.gettype($drug_ids));
$tag_ids = DrugRelatedTagModel::whereIn('drug_id', $drug_ids)->pluck('tag_id')->toArray();
Log::info('tag_ids=>'.json_encode($tag_ids) .'===>'.gettype($tag_ids));
Log::info('tag_ids=>'.json_encode($tag_ids).'===>'.gettype($tag_ids));
// 获取标签关联的问题
if ($tag_ids) {
$inquiry_ids = DrugTagRelatedInquiryModel::whereIn('tag_id', $tag_ids)->pluck('inquiry_id')->toArray();
......
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