This commit is contained in:
@@ -30,17 +30,14 @@ 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)
|
||||
if data.MapId > 10000 && data.MapId != c.Info.UserID {
|
||||
|
||||
c.Service.Done.UpdateRoom(1, 0)
|
||||
service.NewDoneService(data.MapId).UpdateRoom(0, 1)
|
||||
}
|
||||
return nil, -1
|
||||
}
|
||||
func (h Controller) GetMapHot(data *maphot.InInfo, c *player.Player) (result *maphot.OutInfo, err errorcode.ErrorCode) {
|
||||
|
||||
Reference in New Issue
Block a user