request->get('categoryId'); //没有分类默认取商家第一个分类 $categoryId = !empty($categoryId) ? $categoryId : CategoryService::getTopCategoryId(); $where = []; $where['merchantId'] = $this->merchantId; $where['cId'] = $categoryId; $data = GoodsCategoryService::getGoodsList($where); util::success($data); } }