Merge remote-tracking branch 'origin/master'

master
gongzhenkun 2 years ago
commit 1c1169907e

@ -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())){

Loading…
Cancel
Save