|
|
@@ -82,13 +82,13 @@ class CategoryController extends BaseController
|
|
|
//取分类下商品 ssh 20220406
|
|
|
public function actionGoodsList()
|
|
|
{
|
|
|
- $categoryId = Yii::$app->request->get('categoryId', 0);
|
|
|
- if (empty($categoryId)) {
|
|
|
+ $catId = Yii::$app->request->get('catId', 0);
|
|
|
+ if (empty($catId)) {
|
|
|
util::fail('没有分类');
|
|
|
}
|
|
|
$where = [];
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
- $where['cId'] = $categoryId;
|
|
|
+ $where['cId'] = $catId;
|
|
|
$where['flower'] = 0;
|
|
|
$where['delStatus'] = 0;
|
|
|
$status = Yii::$app->request->get('status', '');
|