فهرست منبع

Merge branch 'master' of http://git.huaml.com/zhh/huahuibao

shish 10 ماه پیش
والد
کامیت
a278c33e28
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;
         $mainId = $shop->mainId;
         $query = GoodsCategory::find();
         $query = GoodsCategory::find();
         $query->where(['xhGoodsCategory.mainId' => $mainId]);
         $query->where(['xhGoodsCategory.mainId' => $mainId]);
-        if (!empty($askInfo['catId']) || !empty($askInfo['categoryId'])) {
-            $cId = $askInfo['catId'] ?? 0;
+        if (!empty($askInfo['cId']) || !empty($askInfo['categoryId'])) {
+            $cId = $askInfo['cId'] ?? 0;
             if (empty($cId)) {
             if (empty($cId)) {
                 $cId = $askInfo['categoryId'] ?? 0;
                 $cId = $askInfo['categoryId'] ?? 0;
             }
             }