|
|
|
|
@ -52,9 +52,9 @@ public class ConnectServiceImpl implements ConnectService {
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
String msg = "管理系统";
|
|
|
|
|
for(int i=1;i<level+1;i++) {
|
|
|
|
|
msg+="→"+NUM_STRS.substring(i,i+1);
|
|
|
|
|
String msg = "UDI管理系统";
|
|
|
|
|
for(int i=1;i<level;i++) {
|
|
|
|
|
msg+="→中继服务"+NUM_STRS.substring(i,i+1)+"正常";
|
|
|
|
|
}
|
|
|
|
|
if(config!=null&&config.get("paramValue")!=null) {
|
|
|
|
|
String result = IDCUtils.post(config.get("paramValue") + "/spssync/common/connect", map);
|
|
|
|
|
@ -62,16 +62,17 @@ public class ConnectServiceImpl implements ConnectService {
|
|
|
|
|
BaseResponse object = JSON.parseObject(result, BaseResponse.class);
|
|
|
|
|
if(object.getCode()!=2000) {
|
|
|
|
|
map.replace("level", level +1);
|
|
|
|
|
msg+="→"+NUM_STRS.substring(level,level+1);
|
|
|
|
|
msg+="→中继服务"+NUM_STRS.substring(level+1,level+2)+"正常";
|
|
|
|
|
map.put("msg", msg);
|
|
|
|
|
return ResultVOUtils.success(map);
|
|
|
|
|
}
|
|
|
|
|
return object;
|
|
|
|
|
} else {
|
|
|
|
|
msg+="→⊗";
|
|
|
|
|
msg+="→中继服务"+NUM_STRS.substring(level+1,level+2)+"连接异常";
|
|
|
|
|
map.put("failLevel", level+1);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
msg+="自助平台运行正常";
|
|
|
|
|
map.put("successLevel", level);
|
|
|
|
|
}
|
|
|
|
|
map.put("msg", msg);
|
|
|
|
|
|