shish 3 år sedan
förälder
incheckning
6070053b58
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      app-ghs/controllers/ProductController.php

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

@@ -130,6 +130,13 @@ class ProductController extends BaseController
         if (!empty($status)) {
             $where['status'] = $status;
         }
+        if (getenv('YII_ENV') == 'production') {
+            //丽子鲜花 翔安店 显示有库存的花材(有可能没上架)(他要开自己能看,客户看不到的商品)
+            if ($this->mainId == 1496) {
+                unset($where['status']);
+            }
+            $where['stock>'] = 0;
+        }
         $where['delStatus'] = $delStatus;
 
         //客户等级