From ea3d5f95f00115f6885d4ca94ac8e6119c7aec95 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 5 Jun 2023 16:05:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E7=94=A8=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=9C=8D=E5=8A=A1=E5=9B=A2=E9=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/Merchant.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php index 64630419..3504eca0 100644 --- a/app/controller/api/store/merchant/Merchant.php +++ b/app/controller/api/store/merchant/Merchant.php @@ -27,6 +27,7 @@ use crmeb\basic\BaseController; use app\common\repositories\system\merchant\MerchantRepository as repository; use think\facade\Db; use think\facade\Queue; +use app\common\model\system\merchant\Merchant as MerchantModel; class Merchant extends BaseController { @@ -54,6 +55,7 @@ class Merchant extends BaseController { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword', 'order', 'is_best', 'location', 'category_id', 'type_id','is_trader', 'street_id']); + $where['type_id'] = [MerchantModel::TypeCloudWarehouse, MerchantModel::TypeStore, MerchantModel::TypeSupplyChain, MerchantModel::TypePlatform]; return app('json')->success($this->repository->getList($where, $page, $limit, $this->userInfo)); }