连通检测

master
chengqf 2 years ago
parent e40037b632
commit c07a58ee13

@ -58,9 +58,7 @@ public class ConnectServiceImpl implements ConnectService {
msg+="→中继服务"+NUM_STRS.substring(i,i+1)+"正常"; msg+="→中继服务"+NUM_STRS.substring(i,i+1)+"正常";
} }
if(config!=null&&config.get("paramValue")!=null) { if(config!=null&&config.get("paramValue")!=null) {
logger.info("next host:"+config.get("paramValue"));
String result = IDCUtils.post(config.get("paramValue") + "/spssync/common/connect", map); String result = IDCUtils.post(config.get("paramValue") + "/spssync/common/connect", map);
logger.info("result:"+result);
if (!StringUtils.isEmpty(result)&&IDCUtils.isJson(result)) { if (!StringUtils.isEmpty(result)&&IDCUtils.isJson(result)) {
BaseResponse object = JSON.parseObject(result, BaseResponse.class); BaseResponse object = JSON.parseObject(result, BaseResponse.class);
if(object.getCode()!=20000) { if(object.getCode()!=20000) {
@ -71,7 +69,7 @@ public class ConnectServiceImpl implements ConnectService {
} }
return object; return object;
} else { } else {
msg+="→中继服务"+NUM_STRS.substring(level+1,level+2)+"连接异常"; msg+="→自助平台运行服务连接异常";
map.put("failLevel", level+1); map.put("failLevel", level+1);
} }
} else { } else {

Loading…
Cancel
Save