This commit is contained in:
yumoqing 2021-07-15 15:00:36 +08:00
parent 646b9d868a
commit 15c0a372ca

View File

@ -113,7 +113,7 @@ class DataEncoder:
data = zlib.decompress(data) data = zlib.decompress(data)
if data[:18] == b'\x00' * 18: if data[:18] == b'\x00' * 18:
data = data[18:] data = data[18:]
t = ord(data[0]) t = ord(chr(data[0]))
d = data[1:] d = data[1:]
if t == DATA_TYPE_BYTES: if t == DATA_TYPE_BYTES:
return d return d