diff --git a/src/main/java/aiyh/utils/httpUtil/util/HttpUtils.java b/src/main/java/aiyh/utils/httpUtil/util/HttpUtils.java index 7fe3370..b3e5c36 100644 --- a/src/main/java/aiyh/utils/httpUtil/util/HttpUtils.java +++ b/src/main/java/aiyh/utils/httpUtil/util/HttpUtils.java @@ -1034,12 +1034,12 @@ public class HttpUtils { builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); Long totalSize = 0L; for (MultipartFile multipartFile : multipartFileList) { - log.info(Util.logStr("add file, file info: fileName => [{}], fileKey => [{}], fileSize => [{}]kb", + log.info(Util.logStr("add file: fileName => [{}], fileKey => [{}], fileSize => [{}]kb", multipartFile.getFileName(), multipartFile.getFileKey(), multipartFile.getFileSize())); totalSize += multipartFile.getFileSize(); builder.addBinaryBody(multipartFile.getFileKey(), multipartFile.getStream(), ContentType.MULTIPART_FORM_DATA, multipartFile.getFileName()); } - log.info("total file size: [" + totalSize + "]"); + log.info("total file size: [" + totalSize + "]kb"); ContentType contentType = ContentType.create("text/plain", StandardCharsets.UTF_8); for (Map.Entry param : params.entrySet()) { StringBody stringBody = new StringBody(String.valueOf(param.getValue()), contentType); @@ -1083,12 +1083,12 @@ public class HttpUtils { builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); Long totalSize = 0L; for (MultipartFile multipartFile : multipartFileList) { - log.info(Util.logStr("add file, file info: fileName => [{}], fileKey => [{}], fileSize => [{}]kb", + log.info(Util.logStr("add file: fileName => [{}], fileKey => [{}], fileSize => [{}]kb", multipartFile.getFileName(), multipartFile.getFileKey(), multipartFile.getFileSize())); totalSize += multipartFile.getFileSize(); builder.addBinaryBody(multipartFile.getFileKey(), multipartFile.getStream(), ContentType.MULTIPART_FORM_DATA, multipartFile.getFileName()); } - log.info("total file size: [" + totalSize + "]"); + log.info("total file size: [" + totalSize + "]kb"); ContentType contentType = ContentType.create("text/plain", StandardCharsets.UTF_8); for (Map.Entry param : params.entrySet()) { StringBody stringBody = new StringBody(String.valueOf(param.getValue()), contentType); diff --git a/src/test/java/youhong/ai/pcn/TestOrganization.java b/src/test/java/youhong/ai/pcn/TestOrganization.java index 21963cd..824965f 100644 --- a/src/test/java/youhong/ai/pcn/TestOrganization.java +++ b/src/test/java/youhong/ai/pcn/TestOrganization.java @@ -2,7 +2,6 @@ package youhong.ai.pcn; import ebu7common.youhong.ai.sftp.SftpConnectUtil; import baseTest.BaseTest; -import com.jcraft.jsch.ChannelSftp; import org.junit.Test; import weaver.general.GCONST; import weaver.youhong.ai.pcn.hrorganization.sftp.FetchDataUtil;