Forráskód Böngészése

编辑器权限校验

lyhzzz 3 éve
szülő
commit
c65f3741bb

+ 1 - 2
src/main/java/com/cdf/service/impl/FdkkSceneEditService.java

@@ -148,8 +148,7 @@ public class FdkkSceneEditService {
         if(files !=null && files.getSize() >0){
             String fileName = files.getOriginalFilename();
             assert fileName != null;
-            String prefix = fileName.substring(fileName.lastIndexOf("."));
-            String newFilePath = String.format(hotLocalPath,fdkkUploadRequest.getNum()) + "/"+fileName + prefix;
+            String newFilePath = String.format(hotLocalPath,fdkkUploadRequest.getNum()) + "/"+fileName ;
             File newFile = new File(newFilePath);
             files.transferTo(newFile);
             path = newFile.getPath();