Commit 1a96081c by 赵增煜

Merge branch 'develop' of http://git.imohe.com/zhaozengyu/tzt-admin into develop

parents 388f59c6 e2e6a1d2
......@@ -125,7 +125,7 @@ public function drugLimit(Request $request)
$drugInfos = $prescription->drug_info ?? [];
foreach ($drugInfos as $drugInfo) {
$drugId = $drugInfo['drug_id'];
$drugCounts[$drugId] = ($drugCounts[$drugId] ?? 0) + $drugInfo['num'];
$drugCounts[$drugId] = ($drugCounts[$drugId] ?? 0) + intval($drugInfo['num']);
}
}
......
......@@ -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'] ?? '';
}
......
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