From 685f9140772702c78a064898eb7c0669c3320934 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 9 Nov 2023 11:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/order/StoreOrderBehalf.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controller/api/store/order/StoreOrderBehalf.php b/app/controller/api/store/order/StoreOrderBehalf.php index affaa5f7..92be27bb 100644 --- a/app/controller/api/store/order/StoreOrderBehalf.php +++ b/app/controller/api/store/order/StoreOrderBehalf.php @@ -69,7 +69,6 @@ class StoreOrderBehalf extends BaseController { [$page, $limit] = $this->getPage(); $status = $this->request->param('status','all'); - $uid = $this->request->userInfo()['uid']; $mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id'); if ($mer_id) { @@ -81,6 +80,11 @@ class StoreOrderBehalf extends BaseController $column = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where($where)->page($page)->limit($limit)->column('order_id'); if ($column) { $where['order_id'] = $column; + if($status==0){ + $where[]=['status','=',2]; + }elseif($status==1){ + $where[]=['status','=',3]; + } return app('json')->success($this->repository->getList($where, 1, 100)); } }