From 60a23912b2f769409fba42e317a9582b54c1cbc5 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 18 May 2024 18:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/lists/operation/OpurchaseclassofferLists.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/admin/lists/operation/OpurchaseclassofferLists.php b/app/admin/lists/operation/OpurchaseclassofferLists.php index ef507a9..3cd6e57 100644 --- a/app/admin/lists/operation/OpurchaseclassofferLists.php +++ b/app/admin/lists/operation/OpurchaseclassofferLists.php @@ -31,7 +31,7 @@ class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearch public function setSearch(): array { return [ - '=' => ['is_adopt','is_push'], + '=' => ['is_adopt'], ]; } @@ -50,12 +50,8 @@ class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearch $where=[]; $is_mer=$this->request->get('is_mer',0); $id=$this->request->get('id',0); - if($is_mer==2){ - $arr=Opurchaseclass::where('id',$id)->value('order_arr'); - if($arr){ - $arr=explode(',',$arr); - $where[]=['order_id','in',$arr]; - } + if($id){ + $where[]=['order_id','=',$id]; } $this->where=$where; return OpurchaseGoodsOffer::where($this->searchWhere)