diff --git a/pom.xml b/pom.xml index e3dbbbf..f8571b0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ LuckyFrameClient LuckyFrameClient - 3.3 + 3.4 jar LuckyFrameClient @@ -166,7 +166,7 @@ commons-beanutils commons-beanutils - 1.9.3 + 1.9.4 commons-cli @@ -185,7 +185,7 @@ org.apache.commons commons-compress - 1.13 + 1.19 commons-configuration diff --git a/src/main/Resources/sys_config.properties b/src/main/Resources/sys_config.properties index 1f4d149..b3fb49b 100644 --- a/src/main/Resources/sys_config.properties +++ b/src/main/Resources/sys_config.properties @@ -1,5 +1,5 @@ #===============================ϵͳÅäÖÃ===================================== -client.verison=3.3 +client.verison=3.4 client.name=²âÊÔ¿Í»§¶Ë server.web.ip=localhost server.web.port=80 diff --git a/src/main/java/luckyclient/utils/InvokeMethod.java b/src/main/java/luckyclient/utils/InvokeMethod.java index f822d0b..a665466 100644 --- a/src/main/java/luckyclient/utils/InvokeMethod.java +++ b/src/main/java/luckyclient/utils/InvokeMethod.java @@ -8,6 +8,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import cn.hutool.core.date.DatePattern; +import cn.hutool.core.date.DateUtil; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; @@ -225,7 +227,12 @@ public class InvokeMethod { break; case "getandsavefile": String fileSavePath = RunService.APPLICATION_HOME + "\\HTTPSaveFile\\"; - result = hct.sendGetAndSaveFile(packagename, params, fileSavePath, headmsg, ppt); + File file = new File(fileSavePath); + if (!file.exists()) { + file.mkdirs(); + } + String time = DateUtil.format(DateUtil.date(), DatePattern.PURE_DATETIME_PATTERN); + result = hct.sendGetAndSaveFile(packagename, params, fileSavePath+time, headmsg, ppt); break; case "httpurlget": result = hct.sendHttpURLGet(packagename, params, headmsg, ppt);