1
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user