1
This commit is contained in:
parent
8c0b66f891
commit
1f58f81f28
@ -74,6 +74,14 @@ func (this *playerMgr) CMLogin(hdr *f5.MsgHdr, msg *cs.CMLogin) {
|
||||
return
|
||||
|
||||
}
|
||||
if msg.GetZoneId() < 1 || msg.GetZoneId() > 100 ||
|
||||
msg.GetNodeId() < 1 || msg.GetNodeId() > 10 {
|
||||
rspMsg := cs.SMLogin{}
|
||||
rspMsg.Errcode = proto.Int32(3)
|
||||
rspMsg.Errmsg = proto.String("zone_id or node_id error")
|
||||
GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, &rspMsg)
|
||||
return
|
||||
}
|
||||
}
|
||||
{
|
||||
oldHum := this.internalGetPlayerBySocket(hdr.GetSocket())
|
||||
|
Loading…
x
Reference in New Issue
Block a user