From c208c3ac325eee2d07b4e4f4af9a525e8511aee0 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 07 一月 2025 09:35:06 +0800
Subject: [PATCH] top10 error
---
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