Commit abfa7af4 by 赵增煜

修改问诊人增加返回值

parent a32e3658
......@@ -60,7 +60,7 @@ public function add(Request $request)
if (! validateIdCard($data['id_card'])) {
return $this->failed('身份证格式错误');
}
$idCardInfo = Util::getIdCardInfo($data['id_card']);
$patient->name = $data['name'];
$patient->id_card = $data['id_card'];
......@@ -96,6 +96,8 @@ public function update(Request $request)
$data->gender = $idCardInfo['gender'];
$data->mobile = $request->input('mobile');
$data->save();
return $this->success($data);
}
// 删除问诊人
......
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