This commit is contained in:
昔念
2026-02-07 18:26:22 +08:00
parent 460b92c044
commit 7b8276a387

View File

@@ -19,6 +19,11 @@ import (
// Login 处理命令: 1001
func (h Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.LoginMSInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
if data.Head.UserID == 0 {
defer c.Close()
return
}
isSessionValid := data.CheakSession()
if !isSessionValid {