shish před 4 roky
rodič
revize
fa3abcd0d2
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      app-hd/controllers/ProductController.php

+ 2 - 3
app-hd/controllers/ProductController.php

@@ -74,8 +74,8 @@ class ProductController extends BaseController
         if ($delStatus != 2) {
         if ($delStatus != 2) {
             $where['delStatus'] = $delStatus;
             $where['delStatus'] = $delStatus;
         }
         }
-        //输出标准会员价,即花店价,默认显示的是花店
-        $level = 1;
+        //散客
+        $level = 0;
         $data = ProductClass::getAllByCondition($where, ['actualSold' => SORT_DESC, 'inTurn' => SORT_DESC], "*");
         $data = ProductClass::getAllByCondition($where, ['actualSold' => SORT_DESC, 'inTurn' => SORT_DESC], "*");
         $data = ProductClass::groupProductInfo($data, $level);
         $data = ProductClass::groupProductInfo($data, $level);
         util::success(['list' => $data]);
         util::success(['list' => $data]);
@@ -120,7 +120,6 @@ class ProductController extends BaseController
     {
     {
         $classId = Yii::$app->request->get('classId', 0);
         $classId = Yii::$app->request->get('classId', 0);
         $pyName = Yii::$app->request->get('py', '');
         $pyName = Yii::$app->request->get('py', '');
-
         if ($pyName) {
         if ($pyName) {
             $pyName = strtolower($pyName);
             $pyName = strtolower($pyName);
             $where['py'] = $pyName;
             $where['py'] = $pyName;