``` refactor(player): 移除登录等待机制,前端是登录后才进入地图的,及相关同步逻辑

This commit is contained in:
1
2025-10-14 14:36:39 +00:00
parent 64c7bc204a
commit fead9ed6b5
3 changed files with 4 additions and 65 deletions

View File

@@ -162,10 +162,7 @@ func Recv(c gnet.Conn, data player.TomeeHeader) {
if cmdlister.Type().In(1) == reflect.TypeOf(&player.Player{}) {
t := player.GetPlayer(c, data.UserID)
// fmt.Println(data.CMD, "接收 变量的地址 ", &t.Info, t.Info.UserID)
err := t.WaitForLoginWithCtx(context.Background())
if err != nil {
fmt.Println("登录失败")
}
params = append(params, ptrValue1, reflect.ValueOf(t))
} else {