opt:优化http调用外部日志
This commit is contained in:
@@ -74,15 +74,15 @@ public class AcsToNDCServiceImpl implements AcsToNDCService {
|
||||
jo.put("params", ja);
|
||||
}
|
||||
String wmsurl = paramService.findByCode(AcsConfig.WCSURL).getValue();
|
||||
AddressDto addressDto = addressService.findByCode("applyTaskToWcs");
|
||||
String url = wmsurl + addressDto.getMethods_url();
|
||||
// AddressDto addressDto = addressService.findByCode("applyTaskToWcs");
|
||||
String url = wmsurl;
|
||||
LuceneLogDto logDto =
|
||||
LuceneLogDto.builder()
|
||||
.logType("接口日志")
|
||||
.request_url(wmsurl)
|
||||
.request_direction("post")
|
||||
.request_param(JSON.toJSONString(jo))
|
||||
.method(addressDto.getMethods_url())
|
||||
.method("/")
|
||||
.content("开始请求")
|
||||
.build();
|
||||
luceneExecuteLogService.interfaceExecuteLog(logDto);
|
||||
@@ -99,7 +99,7 @@ public class AcsToNDCServiceImpl implements AcsToNDCService {
|
||||
.request_url(wmsurl)
|
||||
.request_direction("post")
|
||||
.request_param(JSON.toJSONString(jo))
|
||||
.method(addressDto.getMethods_url())
|
||||
.method("/")
|
||||
.response_param(JSON.toJSONString(result))
|
||||
.executeTime(System.currentTimeMillis() - start)
|
||||
.content("响应请求")
|
||||
|
||||
Reference in New Issue
Block a user