shish 2 éve
szülő
commit
03f690dd5c
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      app-ghs/controllers/CustomController.php

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

@@ -53,9 +53,8 @@ class CustomController extends BaseController
         if ($custom->ownMainId != $this->mainId) {
             util::fail('不是您的客户');
         }
-        $seatSn = $custom->seatSn ?? '';
-        if (empty($seatSn)) {
-            util::fail('请先生成货位号');
+        if (is_numeric($new) == false) {
+            util::fail('请填写数字');
         }
         $custom->seatSn = $new;
         $custom->save();