【架构优化】list设置容量,避免动态扩容

This commit is contained in:
hahwu 2026-02-05 19:04:20 +08:00
parent e6f7db6cca
commit fb4367080d

View File

@ -339,7 +339,7 @@ func (p *Player) handle(m *msg.Msg) error {
FriendMod := p.PlayMod.getFriendMod()
FriendMod.Interact(m.From, friend.INTERACT_TYPE_VISIT, m.SendT)
p.UpdateUserInfo()
p.Kafka(PLAYROOM_LOST, map[string]interface{}{"uid": m.From, "item": Items})
p.TeLog("playroom_lost", map[string]interface{}{"uid": m.From, "item": Items})
p.PushClientRes(PlayroomMod.NotifyLose())
case msg.HANDLE_TYPE_PLAYROOM_GAME:
FriendMod := p.PlayMod.getFriendMod()