ai上传返回结果时间处理

master
chenfei 2 years ago
parent 465330ad44
commit d060c6fa43

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

Loading…
Cancel
Save