修改商户列表

This commit is contained in:
luofei 2024-03-13 17:15:45 +08:00
parent 56e0af48df
commit 649f6fbb8e

View File

@ -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));
}