shish 5 anni fa
parent
commit
f25c8a0653

+ 0 - 3
app-ghs/controllers/ProductController.php

@@ -99,10 +99,7 @@ class ProductController extends BaseController
         if ($showPage) {
             $respond = ProductClass::getList("*", $where, "inTurn desc");
             $respond['list'] = ProductClass::groupProductInfo($respond['list']);
-
             $respond['list'] = ProductClass::groupClassName($this->sjId, $respond['list']);
-
-
             util::success($respond);
         }
         $data = ProductClass::getAllByCondition($where, "inTurn desc", "*");

+ 1 - 0
app-hd/controllers/ProductController.php

@@ -90,6 +90,7 @@ class ProductController extends BaseController
         //需要显示分页
         if ($showPage) {
             $respond = ProductClass::getList("*", $where, "inTurn desc");
+            $respond['list'] = ProductClass::groupClassName($this->sjId, $respond['list']);
             util::success($respond);
         }
         $data = ProductClass::getAllByCondition($where, "inTurn desc", "*");

+ 0 - 3
biz-ghs/product/classes/ProductClass.php

@@ -104,9 +104,6 @@ class ProductClass extends BaseClass
                 $smallPrice = bcdiv($v['price'], $ratio, 2);
             }
             $list[$k]['smallPrice'] = $smallPrice;
-            $list[$k]['className'] = '百合类';
-//            $list[$k]['bigUnitName'] = xhItemService::getUnitName($v['bigUnit']);
-//            $list[$k]['smallUnitName'] = xhItemService::getUnitName($v['smallUnit']);
         }
         return $list;
     }