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);