shish 4 anni fa
parent
commit
fa3abcd0d2
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  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) {
             $where['delStatus'] = $delStatus;
         }
-        //输出标准会员价,即花店价,默认显示的是花店
-        $level = 1;
+        //散客
+        $level = 0;
         $data = ProductClass::getAllByCondition($where, ['actualSold' => SORT_DESC, 'inTurn' => SORT_DESC], "*");
         $data = ProductClass::groupProductInfo($data, $level);
         util::success(['list' => $data]);
@@ -120,7 +120,6 @@ class ProductController extends BaseController
     {
         $classId = Yii::$app->request->get('classId', 0);
         $pyName = Yii::$app->request->get('py', '');
-
         if ($pyName) {
             $pyName = strtolower($pyName);
             $where['py'] = $pyName;