diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index d64a149..f0ff21f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -356,9 +356,13 @@ public class AppController extends BaseController String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url; JSONObject jsonObject = new JSONObject(); String result; + long start; + long end; try { + start = System.currentTimeMillis(); result = HttpUtils.sendPost(URL, mapper.writeValueAsString(delNullData(aiPostReq))); + end = System.currentTimeMillis(); } catch (Exception e) { @@ -369,6 +373,7 @@ public class AppController extends BaseController TRecord tRecord = new TRecord(); tRecord.setId(recordId); tRecord.setStatus("1"); + tRecord.setResponseTime((end-start)/1000); tRecordService.updateTRecord(tRecord); JSONObject data = JSONObject.parseObject(result); if(data.getInteger("code") != 200){ @@ -434,7 +439,7 @@ public class AppController extends BaseController if(!StringUtils.isEmpty(param.getLeft())){ map.put(key+"_left",param.getLeft()); } - if(!StringUtils.isEmpty(param.getFront())){ + if(!StringUtils.isEmpty(param.getRight())){ map.put(key+"_right",param.getRight()); } if(!CollectionUtils.isEmpty(param.getOther())){