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

+ 3 - 0
app-hd/controllers/PurchaseController.php

@@ -255,6 +255,9 @@ class PurchaseController extends BaseController
                         util::fail('只能选择同一家的商品哦');
                     }
                     $currentName = $currentInfo['name'] ?? '';
+                    if (isset($currentInfo['frontHide']) && $currentInfo['frontHide'] == 1) {
+                        util::fail($currentName . '没有库存请删除');
+                    }
                     $presell = $currentInfo['presell'] ?? 0;
                     $presellData[] = $presell;
                     if ($presell == 1) {