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

This commit is contained in:
昔念
2026-02-07 23:09:11 +08:00
parent ca2d564e6a
commit ecf971fe31
2 changed files with 10 additions and 6 deletions

View File

@@ -30,7 +30,13 @@ func (h Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.L
defer c.Close()
return
}
Maincontroller.RPCClient.Kick(data.Head.UserID) //通知其他服务器踢人
error := Maincontroller.RPCClient.Kick(data.Head.UserID) //通知其他服务器踢人
if error != nil {
cool.Logger.Error(context.Background(), "踢人失败", err)
defer c.Close()
return
}
currentPlayer := player.GetPlayer(c, data.Head.UserID)
if currentPlayer == nil {
cool.Logger.Error(context.Background(), "获取玩家失败", data.Head.UserID)