更新机器人

This commit is contained in:
flswld
2023-02-14 01:42:47 +08:00
parent f8f55be5bd
commit a5dd1cf42b
4 changed files with 7 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ func (s *Session) recvHandle() {
kcpMsgList := make([]*hk4egatenet.KcpMsg, 0)
hk4egatenet.DecodeBinToPayload(recvData, &dataBuf, convId, &kcpMsgList, s.xorKey)
for _, v := range kcpMsgList {
protoMsgList := hk4egatenet.ProtoDecode(v, nil, nil)
protoMsgList := hk4egatenet.ProtoDecode(v, cmd.NewCmdProtoMap(), nil)
for _, vv := range protoMsgList {
s.RecvChan <- vv
if s.changeXorKeyFin == false && vv.CmdId == cmd.GetPlayerTokenRsp {