Browse Source

fix bug: 分类参数写错了

shizhongqi 11 tháng trước cách đây
mục cha
commit
dec54062a7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      biz-hd/goods/classes/GoodsCategoryClass.php

+ 2 - 2
biz-hd/goods/classes/GoodsCategoryClass.php

@@ -27,8 +27,8 @@ class GoodsCategoryClass extends BaseClass
         $mainId = $shop->mainId;
         $query = GoodsCategory::find();
         $query->where(['xhGoodsCategory.mainId' => $mainId]);
-        if (!empty($askInfo['cId']) || !empty($askInfo['categoryId'])) {
-            $cId = $askInfo['cId'] ?? 0;
+        if (!empty($askInfo['catId']) || !empty($askInfo['categoryId'])) {
+            $cId = $askInfo['catId'] ?? 0;
             if (empty($cId)) {
                 $cId = $askInfo['categoryId'] ?? 0;
             }