优化锦标赛日志
This commit is contained in:
parent
b8309ca89d
commit
b966557d03
@ -378,10 +378,10 @@ func (c *ChampshipMgr) group(iszero bool) (interface{}, error) {
|
||||
ChampshipData := c.getData()
|
||||
ChampshipData.mu.Lock()
|
||||
defer ChampshipData.mu.Unlock()
|
||||
log.Debug("ChampshipMgr group, player num:%d", len(ChampshipData.Pool))
|
||||
if len(ChampshipData.Pool) == 0 { // 未分配玩家池为空
|
||||
return nil, nil
|
||||
}
|
||||
log.Debug("ChampshipMgr group, player num:%d", len(ChampshipData.Pool))
|
||||
g := make(map[int][]int, 0)
|
||||
for k, v := range ChampshipData.Pool { // step 1:根据数值分配玩家
|
||||
x := 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user