11
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 07:36:05 +08:00
parent 24c413030f
commit 180d735706
7 changed files with 224 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ package controller
import (
"blazing/common/socket/errorcode"
"blazing/cool"
"blazing/modules/player/service"
"sync/atomic"
"time"
@@ -29,6 +30,13 @@ func (h Controller) EnterMap(data *space.InInfo, c *player.Player) (result *info
println("进入地图", c.Info.UserID, c.Info.MapID)
}
defer func() {
if data.MapId > 10000 && data.MapId != c.Info.UserID {
c.Service.Done.UpdateRoom(1, 0)
service.NewDoneService(data.MapId).UpdateRoom(0, 1)
}
}()
// copier.CopyWithOption(result, c.Info, copier.Option{DeepCopy: true})
c.GetSpace().EnterMap(c)