This commit is contained in:
UnKownOwO
2023-06-01 00:10:09 +08:00
parent 17dbf5aa8a
commit baea3b1334
2 changed files with 3 additions and 3 deletions

View File

@@ -31,10 +31,10 @@ type KcpMsg struct {
ProtoData []byte
}
func DecodeBinToPayload(data []byte, session *Session, kcpMsgList *[]*KcpMsg, xorKey []byte) {
func DecodeBinToPayload(data []byte, convId uint64, kcpMsgList *[]*KcpMsg, xorKey []byte) {
// xor解密
endec.Xor(data, xorKey)
DecodeLoop(data, session.conn.GetConv(), kcpMsgList)
DecodeLoop(data, convId, kcpMsgList)
return
}