From 84adb688b890547b95b3fd3e86fd836b0176680e Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Fri, 18 Aug 2023 10:46:00 +0800 Subject: [PATCH] fetch --- app/adminapi/lists/logistics/LogisticsLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adminapi/lists/logistics/LogisticsLists.php b/app/adminapi/lists/logistics/LogisticsLists.php index 9f2f23d6..31991ab8 100755 --- a/app/adminapi/lists/logistics/LogisticsLists.php +++ b/app/adminapi/lists/logistics/LogisticsLists.php @@ -67,7 +67,7 @@ class LogisticsLists extends BaseAdminDataLists implements ListsSearchInterface $item['status_name'] = $item->status_name; $product_count = 0; //获取产品信息 - $lst_item['products'] = Product::field('product_num,cart_info')->where('order_id', $item['order_id'])->select()->each(function($pro_item) use(&$product_count){ + $item['products'] = Product::field('product_num,cart_info')->where('order_id', $item['order_id'])->select()->each(function($pro_item) use(&$product_count){ $pro_item['cart_info'] = json_decode($pro_item['cart_info'], true); $pro_item['goods_name'] = $pro_item['cart_info']['product']['store_name']; $pro_item['goods_unit'] = $pro_item['cart_info']['product']['unit_name'];