From 96d20241b7e2813a945c085cb91652696a93b827 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 2 Jan 2024 16:08:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=B5=81=E8=AE=A2=E5=8D=95=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Logistics.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/api/dataview/Logistics.php b/app/controller/api/dataview/Logistics.php index 7e3e6a19..5f858cf1 100755 --- a/app/controller/api/dataview/Logistics.php +++ b/app/controller/api/dataview/Logistics.php @@ -314,10 +314,11 @@ class Logistics extends BaseController $query->whereBetween('ps_time', [$startTime, $endTime]); })->count(); } + $list = $list->toArray(); foreach ($list as &$item) { $item['product_name'] = StoreOrderProduct::alias('o')->join('store_product p', 'o.product_id=p.product_id')->where('o.order_id', $item['order_id'])->value('p.store_name'); } - unset($item); + return app('json')->success(compact('count', 'list')); } } \ No newline at end of file