diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/dmpMonitor/request/HttpRequestRds.java b/eladmin-system/src/main/java/me/zhengjie/modules/dmpMonitor/request/HttpRequestRds.java index 3a8085d..4d97f11 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/dmpMonitor/request/HttpRequestRds.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/dmpMonitor/request/HttpRequestRds.java @@ -23,6 +23,8 @@ public class HttpRequestRds { @Value("${callback.url}") private String url; + @Value("${rdsFileRecord.link.address}") + private String addressLink; public Map generateDmp(String tag, Integer type) { String reqUrl = url + "/generate/dmp?" + "tag=" + tag + "&type=" + type; @@ -59,9 +61,10 @@ public class HttpRequestRds { HttpResponse response = getRequest(url, ""); if (response.isOk()) { JSONObject jsonObject = JSONUtil.parseObj(response.body()); - link = jsonObject.getStr("data"); + JSONObject data = jsonObject.getJSONObject("data"); + link = data.getStr("onceLink").split("\\?")[1]; } - return link; + return addressLink + "?" + link; } public Map callBackNumByTags(DmpMonitorNumDto dmp) { diff --git a/eladmin-system/src/main/resources/config/application-prod.yml b/eladmin-system/src/main/resources/config/application-prod.yml index c5a9a85..5e4485e 100644 --- a/eladmin-system/src/main/resources/config/application-prod.yml +++ b/eladmin-system/src/main/resources/config/application-prod.yml @@ -148,3 +148,7 @@ sys: redisson: address: redis://127.0.0.1:6379 password: + +rdsFileRecord: + link: + address: http://116.60.197.152:8000/api/tempFileRecord/downloadFile \ No newline at end of file