shish 1 жил өмнө
parent
commit
f55ee894f4

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

@@ -441,6 +441,10 @@ class ProductController extends BaseController
             //根据分类组装分类下的花材信息
             //根据分类组装分类下的花材信息
             $shop = ShopClass::getById($shopId, true);
             $shop = ShopClass::getById($shopId, true);
             $mainId = $shop->mainId ?? 0;
             $mainId = $shop->mainId ?? 0;
+            $open = $shop->open??1;
+            if($open == 0){
+                util::fail('已休店');
+            }
             $classIds = ItemClassClass::getGhsItemClassAll($mainId);
             $classIds = ItemClassClass::getGhsItemClassAll($mainId);
             $where['mainId'] = $mainId;
             $where['mainId'] = $mainId;
             $where['delStatus'] = 0;
             $where['delStatus'] = 0;