From bb76ae5cc962ea63158c7b23f561caee9d20aaea Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 30 Mar 2023 14:20:39 +0800 Subject: [PATCH] 1 --- app/Services/OrderPrescriptionService.php | 7 +++++-- app/Services/PatientOrderService.php | 2 +- app/Services/UserDoctorService.php | 2 -- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/Services/OrderPrescriptionService.php b/app/Services/OrderPrescriptionService.php index 5de037a..d171000 100644 --- a/app/Services/OrderPrescriptionService.php +++ b/app/Services/OrderPrescriptionService.php @@ -324,8 +324,11 @@ class OrderPrescriptionService extends BaseService // 上传oss $filename = "applet/prescription/" . $order_prescription['order_prescription_id'] . '.' . 'pdf'; - $prescription_pdf = $oss->putObject($filename, $pdf_result); - dump($prescription_pdf); + $prescription_pdf_url = $oss->putObject($filename, $pdf_result); + + + + } catch (\Exception $e) { dump($e->getMessage()); diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index a52c735..beadef7 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -1042,7 +1042,7 @@ class PatientOrderService extends BaseService // 修改处方为已使用 $data = array(); - $data['prescription_status'] = 4; + $data['prescription_status'] = 5; $params = array(); $params['order_prescription_id'] = $order_prescription['order_prescription_id']; diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 8cc55fc..4065ddc 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -1281,8 +1281,6 @@ class UserDoctorService extends BaseService unset($product); } - - // 加入分配药师队列 $data = array(); $data['order_prescription_id'] = $order_prescription['order_prescription_id'];