shish 4 ani în urmă
părinte
comite
37bfaf47fd
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      app-hd/controllers/CategoryController.php

+ 3 - 3
app-hd/controllers/CategoryController.php

@@ -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', '');