parent
0027f93f9f
commit
4d5b679cfe
@ -1507,7 +1507,8 @@ class UserDoctorService extends BaseService
|
||||
$params['is_transfer_prescription'] = 1;
|
||||
$params['multi_point_status'] = 1;
|
||||
$transfer_prescription_list = UserDoctor::getList($params);
|
||||
if (!empty($transfer_prescription_list)) {
|
||||
// 使用 count() 判断更明确,避免 empty() 对 Collection 的判断歧义
|
||||
if (count($transfer_prescription_list) > 0) {
|
||||
$transfer_doctor = $transfer_prescription_list[0];//取第一个抄方医生
|
||||
|
||||
// 获取抄方医生问诊配置-问诊购药
|
||||
@ -1533,7 +1534,7 @@ class UserDoctorService extends BaseService
|
||||
$res = OrderInquiry::edit($params,$data);
|
||||
if (!$res) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "开具处方失败1");
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "开具处方失败");
|
||||
}
|
||||
}else{
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "医师有误,请联系客服或小助手");
|
||||
@ -1542,7 +1543,7 @@ class UserDoctorService extends BaseService
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "开具处方失败2");
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "开具处方失败");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user