cqpCow hace 8 meses
padre
commit
4c2685e0dc
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Service/JRFIDServerService.php

+ 3 - 0
app/Service/JRFIDServerService.php

@@ -1053,6 +1053,9 @@ class JRFIDServerService extends Service
         if(empty($data['contract_no'])) return [false, '合同号不能为空'];
         if(empty($data['drawing_no'])) return [false, '图号不能为空'];
         if(empty($data['procedure'])) return [false, '工序不能为空'];
+        foreach ($data['procedure'] as $value){
+            if(empty($value)) return [false, '工序不能为空'];
+        }
 
         $post = [
             'type' => $data['type'],