各项统计支持单节点多集群

This commit is contained in:
GoEdgeLab
2021-08-01 11:13:46 +08:00
parent 83ae3095cd
commit e459346e36
4 changed files with 26 additions and 8 deletions

View File

@@ -787,6 +787,7 @@ func (this *ServerDAO) ComposeServerConfig(tx *dbs.Tx, serverId int64) (*serverc
config := &serverconfigs.ServerConfig{}
config.Id = serverId
config.ClusterId = int64(server.ClusterId)
config.Type = server.Type
config.IsOn = server.IsOn == 1
config.Name = server.Name