shish 4 lat temu
rodzic
commit
84baf643cc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -72,7 +72,7 @@ class PurchaseController extends BaseController
             $ghsMainId = $ghsShopInfo->mainId ?? 0;
             $ghsMainId = $ghsShopInfo->mainId ?? 0;
 
 
             $isOpen = ShopClass::isOpen($ghsShopInfo);
             $isOpen = ShopClass::isOpen($ghsShopInfo);
-            if ($isOpen == 0) {
+            if ($isOpen == 0 && $post['book'] == 0) {
                 util::fail('商家已关店休息了');
                 util::fail('商家已关店休息了');
             }
             }