From 13d4ac1fad024d2881e7500e032d02b7d9981c8b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 2 Jul 2024 14:42:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(UserShipLists):=20=E6=A0=B9=E6=8D=AEtype?= =?UTF-8?q?=5Fid=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/lists/user/UserShipLists.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/common/lists/user/UserShipLists.php b/app/common/lists/user/UserShipLists.php index e66ec7f2c..55672fc82 100644 --- a/app/common/lists/user/UserShipLists.php +++ b/app/common/lists/user/UserShipLists.php @@ -42,7 +42,10 @@ class UserShipLists extends BaseAdminDataLists if(!$this->request->__get('id')){ $arr[]=['id'=>0,'title'=>'一般用户','limit'=>0]; } - $this->searchWhere[]=['id','<>',4]; + $type_id=$this->request->get('type_id',0); + if($type_id!=4){ + $this->searchWhere[]=['id','<>',4]; + } $lists = UserShip::where($this->searchWhere) ->limit($this->limitOffset, $this->limitLength) ->field($field)