优化锦标赛日志

This commit is contained in:
hahwu 2026-03-06 17:10:51 +08:00
parent b8309ca89d
commit b966557d03

View File

@ -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