Commit 01b3d4d9 by lujunyi

药品限购兼容脏数据

parent 962bbcf3
......@@ -152,14 +152,14 @@ public function update(Request $request)
}
$practicing_license = $request->input('practicing_license');
$practicing_license_path = '';
if( !empty($practicing_license) ){
if (! empty($practicing_license)) {
$practicing_licenses = parse_url($practicing_license);
$practicing_license_path = $practicing_licenses['path'];
}
$physician_license = $request->input('physician_license');
$physician_license_path = '';
if( !empty($physician_license) ){
if (! empty($physician_license)) {
$physician_licenses = parse_url($physician_license);
$physician_license_path = $physician_licenses['path'];
}
......@@ -171,7 +171,7 @@ public function update(Request $request)
$pharmacist->practicing_license = $practicing_license_path; // 执业注册证书链接
$pharmacist->practicing_license_expired_time = $request->input('practicing_license_expired_time');
$pharmacist->physician_license = $physician_license_path; // 执业资格证书链接
if ($pharmacist->save()) {
return $this->success($pharmacist);
}
......
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