Authored by qinchao

重绘关键切换拓扑图

... ... @@ -50,10 +50,14 @@ public class NginxSwitchCtrl {
Map<String, List<Map<String, Object>>> map = new HashMap<>();
List<HostInfo> grayServerHosts=hostInfoMapper.selectHostInfosByTagList(Arrays.asList(new String[]{"灰度","gateway"}));
List<String> grayHostIps=new ArrayList<String>();
for(HostInfo host:grayServerHosts){
grayHostIps.add(host.getHostIp());
}
//获取灰度机器的server。ip
List<Map<String, Object>> grayHosts=new ArrayList<>();
Map<String, Object> tmpmap=new HashMap<String, Object>();
tmpmap.put("grayServerHosts", grayServerHosts);
tmpmap.put("grayServerHosts", grayHostIps);
grayHosts.add(tmpmap);
map.put("grayServerHosts", grayHosts);
if ("test".equals(env)) {
... ...