no message
This commit is contained in:
parent
d6491b2b72
commit
095a909173
|
@ -136,7 +136,7 @@ func (ssm *ServerSessionMgr) GetSessions(areaId, srvType int) (sessions []*netli
|
||||||
func (ssm *ServerSessionMgr) GetServerId(areaId, srvType int) int {
|
func (ssm *ServerSessionMgr) GetServerId(areaId, srvType int) int {
|
||||||
if a, exist := ssm.sessions[areaId]; exist {
|
if a, exist := ssm.sessions[areaId]; exist {
|
||||||
if b, exist := a[srvType]; exist {
|
if b, exist := a[srvType]; exist {
|
||||||
for sid, _ := range b {
|
for sid := range b {
|
||||||
return sid
|
return sid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ func (ssm *ServerSessionMgr) GetServerIdByMaxData(areaId, srvType int) int {
|
||||||
func (ssm *ServerSessionMgr) GetServerIds(areaId, srvType int) (ids []int) {
|
func (ssm *ServerSessionMgr) GetServerIds(areaId, srvType int) (ids []int) {
|
||||||
if a, exist := ssm.sessions[areaId]; exist {
|
if a, exist := ssm.sessions[areaId]; exist {
|
||||||
if b, exist := a[srvType]; exist {
|
if b, exist := a[srvType]; exist {
|
||||||
for sid, _ := range b {
|
for sid := range b {
|
||||||
ids = append(ids, sid)
|
ids = append(ids, sid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue