소스 검색

修改在途异常的问题

lvhao 2 달 전
부모
커밋
a1005d37ea
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      core/CoreApp/controllers/Whlabeltransport.php

+ 3 - 0
core/CoreApp/controllers/Whlabeltransport.php

@@ -368,6 +368,9 @@ class Whlabeltransport extends Start_Controller {
 					}
 					}
 					**/
 					**/
 				}
 				}
+				if(empty($data['num'])){
+					echo json_encode(array('msg'=>'数量不能为空!','success'=>false));exit;
+				}
 				$this->db->trans_begin();
 				$this->db->trans_begin();
 				for($i=0;$i<$data['num'];$i++)
 				for($i=0;$i<$data['num'];$i++)
 			    {
 			    {