shish 1 год назад
Родитель
Сommit
3a17dc2b51
1 измененных файлов с 3 добавлено и 0 удалено
  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 ?? '';