This commit is contained in:
2023-03-31 16:10:53 +08:00
parent 8be42f20f0
commit 878bd21ec0
8 changed files with 98 additions and 27 deletions
+8 -6
View File
@@ -1117,15 +1117,16 @@ class UserDoctorService extends BaseService
}
$OrderPrescriptionService = new OrderPrescriptionService();
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
if (empty($prescription_img)){
$prescription_open_result = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
if (empty($prescription_open_result['prescription_img_url']) || empty($prescription_open_result['prescription_pdf_url'])){
Db::rollBack();
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
}
// 修改处方表
$data = array();
$data['prescription_img'] = $prescription_img;
$data['prescription_img'] = $prescription_open_result['prescription_img_url'];
$data['prescription_pdf'] = $prescription_open_result['prescription_pdf_url'];
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
$params = array();
@@ -1310,15 +1311,16 @@ class UserDoctorService extends BaseService
// 开具处方
$OrderPrescriptionService = new OrderPrescriptionService();
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
if (empty($prescription_img)){
$prescription_open_result = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
if (empty($prescription_open_result['prescription_img_url']) || empty($prescription_open_result['prescription_pdf_url'])){
Db::rollBack();
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
}
// 修改处方表
$data = array();
$data['prescription_img'] = $prescription_img;
$data['prescription_img'] = $prescription_open_result['prescription_img_url'];
$data['prescription_pdf'] = $prescription_open_result['prescription_pdf_url'];
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
$params = array();