diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php index 5385d2f3..89d06cbc 100644 --- a/app/controller/api/store/merchant/Merchant.php +++ b/app/controller/api/store/merchant/Merchant.php @@ -47,6 +47,10 @@ class Merchant extends BaseController if (empty($where['type_id'])) { $where['type_id'] = MerchantType::where('is_allow_apply', 1)->where('is_search_display', 1)->column('mer_type_id'); } + if ($where['merchant_category_id'] > 0) { + $where['category_id'] = $where['merchant_category_id']; + unset($where['merchant_category_id']); + } return app('json')->success($this->repository->getList($where, $page, $limit, $this->userInfo)); }