From 3ef077b261e0e5fb2aa16c988fc9e49b5ce486f7 Mon Sep 17 00:00:00 2001 From: haomingming Date: Fri, 26 Dec 2025 12:00:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientOrderService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index d6a991c..3fbd37a 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -1999,6 +1999,10 @@ class PatientOrderService extends BaseService $order_prescription = OrderPrescription::getWithPage($params, ['*'], $page, $per_page); if (!empty($order_prescription['data'])) { foreach ($order_prescription['data'] as &$item) { + // 将模型对象转换为数组,避免间接修改重载元素错误 + if (is_object($item)) { + $item = $item->toArray(); + } //处理抄方情况 $params = array();