From 465330ad44a6ec864cb40d2a605bdcc7617c1fa6 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Fri, 19 Aug 2022 11:48:15 +0800 Subject: [PATCH] =?UTF-8?q?ai=E4=B8=8A=E4=BC=A0=E8=BF=94=E5=9B=9E=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=97=B6=E9=97=B4=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/api/AppController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 94c88c2..a79cb83 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())){