From bc056b892c4a79d836a052252584c65ec0e0547e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 15 Oct 2024 16:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=BA=97=E9=93=BA=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在BeforehandOrderLogic类的getOrderDetail方法中,添加了系统店铺名称字段。此信息现在将通过SystemStore模型获取,并在返回的订单详情数组中提供,使得用户能够直接看到店铺名称,而不仅仅是店铺ID。 --- app/admin/logic/beforehand_order/BeforehandOrderLogic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index cbae51f2f..33b1908c7 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -16,6 +16,7 @@ use app\common\model\store_order\StoreOrder; use app\common\model\store_order_cart_info\StoreOrderCartInfo; use app\common\model\store_product\StoreProduct; use app\common\model\store_product_unit\StoreProductUnit; +use app\common\model\system_store\SystemStore; use app\common\model\user\User; use app\common\model\user\UserAddress; use app\common\model\warehouse_order\WarehouseOrder; @@ -436,6 +437,7 @@ class BeforehandOrderLogic extends BaseLogic $arr = StoreCategory::where('id', 'in', $top_cate_list)->field('name,id')->select(); $res['top_cate'] = $arr?->toArray(); } + $res['system_store']=SystemStore::where('id',$res['store_id'])->value('name'); return $res; } }