``` refactor(player): 移除登录等待机制,前端是登录后才进入地图的,及相关同步逻辑
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user