shish 1 год назад
Родитель
Сommit
f55ee894f4
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app-hd/controllers/ProductController.php

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

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