From ea351b82a71f4a3fa8bea0b6617c5af444ac370c Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Mon, 18 Mar 2024 21:44:28 +0800 Subject: [PATCH] 1 --- addons/shopro/controller/order/Order.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/shopro/controller/order/Order.php b/addons/shopro/controller/order/Order.php index 343d581..f2eaa2e 100755 --- a/addons/shopro/controller/order/Order.php +++ b/addons/shopro/controller/order/Order.php @@ -85,6 +85,11 @@ class Order extends Common // 更新包裹信息(5分钟缓存) (new ExpressLib)->updateOrderExpress($order['id']); + + //添加自提地址 + $order['zt_address'] = (new Warehouse()) + ->where('id', '=', $order['warehouse_id']) + ->find(); $this->success('获取成功', $order); }