mainId); util::success($return); } //取分类下商品 ssh 2019.12.2 public function actionGoodsList() { $categoryId = Yii::$app->request->get('categoryId'); if (empty($categoryId)) { util::fail('没有找到分类'); } $where = []; $where['mainId'] = $this->mainId; $where['cId'] = $categoryId; $where['delStatus'] = 0; $data = GoodsCategoryService::getGoodsList($where); util::success($data); } }