From d060c6fa43c2b2298ba2d9dffd0180573aba288e Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Fri, 19 Aug 2022 11:53:05 +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 --- .../main/java/com/ruoyi/web/controller/api/AppController.java | 2 +- 1 file changed, 1 insertion(+), 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 a79cb83..e44bd6e 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 @@ -373,7 +373,6 @@ 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){ @@ -385,6 +384,7 @@ public class AppController extends BaseController } jsonObject = removeBase64Image(data,recordId); tRecord.setUpdateTime(new Date()); + tRecord.setResponseTime((end-start)/1000); tRecord.setAiResult(JSONObject.toJSONString(jsonObject, SerializerFeature.WriteMapNullValue)); tRecord.setAiResult2(JSONObject.toJSONString(jsonObject, SerializerFeature.WriteMapNullValue)); tRecordService.updateTRecord(tRecord);