This commit is contained in:
fang 2024-11-12 10:14:05 +08:00
parent 0b924c9cd7
commit 30c1d93a38
1 changed files with 6 additions and 3 deletions

View File

@ -29,9 +29,9 @@ public class RequestClient {
private String port;// 端口
private RequestClient() {
this.protocal = System.getProperty("efms.midservice.protocal");
this.ip = System.getProperty("efms.midservice.ip");
this.port = System.getProperty("efms.midservice.port");
this.protocal = System.getProperty("backlog-protocal");
this.ip = System.getProperty("backlog-ip");
this.port = System.getProperty("backlog-port");
}
/**
* 获取中台服务客户端实例
@ -59,6 +59,7 @@ public class RequestClient {
if (!StringUtils.isEmpty(this.port)) {
urlStr.append(":").append(this.port);
}
logger.info("环境参数,protocal:"+this.protocal+",ip:"+this.ip+",this.port:"+this.port);
urlStr.append(url);
String responseText = null;
try {
@ -87,7 +88,9 @@ public class RequestClient {
urlStr.append(":").append(this.port);
}
urlStr.append(url);;
logger.info("保存时,环境参数,protocal:"+this.protocal+",ip:"+this.ip+",this.port:"+this.port);
DynamicObject dynamicObject = BusinessDataServiceHelper.newDynamicObject("shkd_backlog");
logger.info("保存日志表id"+dynamicObject.getPkValue());
dynamicObject.set("shkd_url",urlStr);
dynamicObject.set("shkd_request",title);
dynamicObject.set("shkd_request_tag",jsonMessage);