From 137715d252d8942b28d4c0170d731bd24dfa1e3e Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Mon, 22 Jan 2024 15:34:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A6=96=E5=8D=95=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/UserController.php b/app/api/controller/UserController.php index 65843225..20cffc9b 100644 --- a/app/api/controller/UserController.php +++ b/app/api/controller/UserController.php @@ -325,7 +325,7 @@ class UserController extends BaseApiController $firstOrderLogList = Db::name('user_invite_first_order_log')->where('user_id', $this->userId)->page($page, $limit)->select()->toArray(); foreach ($firstOrderLogList as &$item) { - $item['order_info'] = Db::connect('mysql2')->name('store_order')->alias('o')->field('o.total_num,p.store_name,p.image')->leftJoin('store_order_product op', 'o.order_id=op.order_id')->leftJoin('store_product p', 'op.product_id = p.product_id')->where('o.order_sn', $item['order_no'])->select(); + $item['order_info'] = Db::connect('mysql2')->name('store_order')->alias('o')->field('o.total_num,p.store_name,p.image')->leftJoin('store_order_product op', 'o.order_id=op.order_id')->leftJoin('store_product p', 'op.product_id = p.product_id')->where('o.order_sn', $item['order_no'])->find(); $item['create_time'] = date('Y-m-d H:i:s', $item['create_time']); } $data = [