``` fix(player): 优化战斗结束处理逻辑,避免线程阻塞并修复格式问题

This commit is contained in:
1
2025-10-14 15:12:08 +00:00
parent fead9ed6b5
commit fccdda3c9d
3 changed files with 9 additions and 4 deletions

View File

@@ -25,10 +25,13 @@ func (p *Player) SendNoteReadyToFightInfo(b info.NoteReadyToFightInfo) {
p.SendPack(t1.Pack(&b)) //准备包由各自发,因为协议不一样
}
func (p *Player) SendFightEndInfo(b info.FightOverInfo) {
t1 := NewTomeeHeader(2506, p.Info.UserID)
t1 := NewTomeeHeader(2506, p.Info.UserID)
p.SendPack(t1.Pack(&b))
p.FightC = nil
p.SendPack(t1.Pack(&b))
p.FightC = nil
}
func (p *Player) CatchPetInfo(b info.CatchMonsterOutboundInfo) {