shish před 1 rokem
rodič
revize
3a17dc2b51
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      app-ghs/controllers/CustomController.php

+ 3 - 0
app-ghs/controllers/CustomController.php

@@ -879,6 +879,9 @@ class CustomController extends BaseController
         $custom = CustomClass::getById($customId, true);
         CustomClass::valid($custom, $this->shopId);
         $seatSn = $custom->seatSn ?? 0;
+        if ($seatSn == 0) {
+            util::fail('没有货位');
+        }
         $customName = $custom->name ?? '';
         if (isset($custom->seatSnName) && !empty($custom->seatSnName)) {
             $customName = $custom->seatSnName ?? '';