diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java index d32d686a..2451596f 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SFTPUtil.java @@ -310,7 +310,7 @@ public class SFTPUtil { OutputStream output = null; try { if (logger.isInfoEnabled()) { - logger.info("开始获取远程文件:[{}]---->[{}]", new Object[]{directory, saveFile}); + logger.info("开始获取远程文件:[{}]---->[{}]", new Object[]{directory, newDownloadFile}); } // sftp.cd(directory); if (logger.isInfoEnabled()) { diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java index ce999840..38826d37 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java @@ -131,13 +131,13 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl"+message); }else{ System.out.println("3-------->"); @@ -314,7 +314,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl"+message); } @@ -324,7 +324,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl fileMap = new HashMap(); String ret = formUpload(url, textMap, fileMap,contentType); @@ -433,13 +434,13 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl"+map); if(!map.get("code").equals("0")){ response.setStatus(404); - throw new RuntimeException(map.get("msg")); +// throw new RuntimeException(map.get("msg")); } String localFilePath = map.get("fileName"); File file = new File(localFilePath); if(!file.exists()){ response.setStatus(404); - throw new RuntimeException("文件["+imgPath+"]不存在.."); +// throw new RuntimeException("文件["+imgPath+"]不存在.."); } System.out.println("localFilePath----------->"+localFilePath); // 设置强制下载不打开 diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml index 01ab2730..4512344b 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml @@ -177,8 +177,8 @@ jeecg: # 签名拦截接口 signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys #local、minio、alioss - uploadType: local -# uploadType: sftp +# uploadType: local + uploadType: sftp # 前端访问地址 domainUrl: pc: http://localhost:3100 @@ -346,5 +346,5 @@ sftp: username: sftp password: sftp timeout: 1000 - uploadpath: /kczx + uploadpath: kczx fullpath: /home/sftp \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml index a59d5a56..1a4bff94 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml @@ -352,5 +352,5 @@ sftp: username: sftp password: Nenujwc@99 timeout: 1000 - uploadpath: /kczx + uploadpath: kczx fullpath: /home/sftp \ No newline at end of file