lyhzzz 6 mesi fa
parent
commit
0336450c6c

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/UploadService.java

@@ -101,7 +101,7 @@ public class UploadService {
                 throw new BusinessException(ResultCode.UPLOAD_ERROR.code,ResultCode.UPLOAD_ERROR.msg);
             }
 
-            return queryPath +filePathAdd+ URLEncoder.encode(fileName,"utf-8").replaceAll("+", "%20") + suffixName;
+            return queryPath +filePathAdd+ URLEncoder.encode(fileName,"utf-8").replace("+", "%20") + suffixName;
         }catch (Exception e){
             log.info("upload-error:{}",e);
             throw new BusinessException(ResultCode.UPLOAD_ERROR.code,ResultCode.UPLOAD_ERROR.msg);