Răsfoiți Sursa

上传文件校验2

chenendian 3 luni în urmă
părinte
comite
7b2cd49932

+ 1 - 6
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeAttachmentImpl.java

@@ -315,12 +315,6 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
     }
     }
 
 
 
 
-
-
-
-
-
-
     /**
     /**
      * 保存附件信息
      * 保存附件信息
      */
      */
@@ -574,6 +568,7 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
             for(String currentAttachment : currentAttachmentList){
             for(String currentAttachment : currentAttachmentList){
                 if(!CollectionUtils.containsAny(directoryPathList,currentAttachment)){
                 if(!CollectionUtils.containsAny(directoryPathList,currentAttachment)){
                     retFlag = false;
                     retFlag = false;
+                    break;
                 }
                 }
             }
             }
         } catch (IOException e) {
         } catch (IOException e) {