|
|
@ -356,9 +356,13 @@ public class AppController extends BaseController
|
|
|
|
String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url;
|
|
|
|
String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url;
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
String result;
|
|
|
|
String result;
|
|
|
|
|
|
|
|
long start;
|
|
|
|
|
|
|
|
long end;
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
start = System.currentTimeMillis();
|
|
|
|
result = HttpUtils.sendPost(URL, mapper.writeValueAsString(delNullData(aiPostReq)));
|
|
|
|
result = HttpUtils.sendPost(URL, mapper.writeValueAsString(delNullData(aiPostReq)));
|
|
|
|
|
|
|
|
end = System.currentTimeMillis();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -369,6 +373,7 @@ public class AppController extends BaseController
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
tRecord.setId(recordId);
|
|
|
|
tRecord.setId(recordId);
|
|
|
|
tRecord.setStatus("1");
|
|
|
|
tRecord.setStatus("1");
|
|
|
|
|
|
|
|
tRecord.setResponseTime((end-start)/1000);
|
|
|
|
tRecordService.updateTRecord(tRecord);
|
|
|
|
tRecordService.updateTRecord(tRecord);
|
|
|
|
JSONObject data = JSONObject.parseObject(result);
|
|
|
|
JSONObject data = JSONObject.parseObject(result);
|
|
|
|
if(data.getInteger("code") != 200){
|
|
|
|
if(data.getInteger("code") != 200){
|
|
|
@ -434,7 +439,7 @@ public class AppController extends BaseController
|
|
|
|
if(!StringUtils.isEmpty(param.getLeft())){
|
|
|
|
if(!StringUtils.isEmpty(param.getLeft())){
|
|
|
|
map.put(key+"_left",param.getLeft());
|
|
|
|
map.put(key+"_left",param.getLeft());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!StringUtils.isEmpty(param.getFront())){
|
|
|
|
if(!StringUtils.isEmpty(param.getRight())){
|
|
|
|
map.put(key+"_right",param.getRight());
|
|
|
|
map.put(key+"_right",param.getRight());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!CollectionUtils.isEmpty(param.getOther())){
|
|
|
|
if(!CollectionUtils.isEmpty(param.getOther())){
|
|
|
|