From 9cb1f5cf9cc383d8f09b0735e75ee7a0ef181804 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期六, 19 十月 2024 11:11:00 +0800 Subject: [PATCH] 优化代码,修改注解信息 --- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java index 6392086..def09e9 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java @@ -20,7 +20,7 @@ import java.util.Date; /** - * web鏂囦欢涓婁紶绀轰緥 + * web鏂囦欢涓婁紶 */ @Slf4j @RestController @@ -35,7 +35,8 @@ @Value("${dy.webFile.fmUrl}") private String fmUrl ; - //鏀寔鐨勬枃浠剁被鍨� + + //鏀寔鐨勬枃妗f枃浠剁被鍨� @Value("${dy.webFile.supportedFileTypes}") private String supportedFileTypes ; @@ -46,7 +47,7 @@ */ @PostMapping("/upPhoto") @SsoPowerAop(power = "-1") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇� - //https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 + //鍙傝�冿細 https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 public BaseResponse<?> upPhoto(MultipartFile file) { try { if (file != null) { @@ -68,7 +69,7 @@ fileNameGrp[1], (frVo.getFileWebUrl() + frVo.getFileWebPath()), fileOp.getImgFileZipPath(frVo.getFileWebUrl() + frVo.getFileWebPath()), - frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ; + frVo.fileWebDownloadPath + id) ; return BaseResponseUtils.buildSuccess(fvo) ; }else { return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�"); @@ -113,7 +114,7 @@ fileNameGrp[1], frVo.getFileWebUrl() + frVo.getFileWebPath(), null, - frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ; + frVo.fileWebDownloadPath + id) ; return BaseResponseUtils.buildSuccess(fvo) ; }else { return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�"); @@ -159,7 +160,7 @@ fileNameGrp[1], frVo.getFileWebUrl() + frVo.getFileWebPath(), null, - frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ; + frVo.fileWebDownloadPath + id) ; return BaseResponseUtils.buildSuccess(fvo) ; }else { return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�"); @@ -208,7 +209,7 @@ fileNameGrp[0], fileNameGrp[1], frVo.getFileWebUrl() + frVo.getFileWebPath(), null, - frVo.fileSysRestUrl + frVo.fileWebDownloadPath + id) ; + frVo.fileWebDownloadPath + id) ; return BaseResponseUtils.buildSuccess(fvo) ; }else { return BaseResponseUtils.buildError("鏈緱鍒颁笂浼犳枃浠剁殑鎵╁睍鍚�"); -- Gitblit v1.8.0