Skip to content

Commit 4445df2

Browse files
committed
fix
1 parent df95c3f commit 4445df2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

12.network/zhiwu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def parse(self, pack):
4444
res = self.core(pack)
4545
if (pack[0] == TYPE_COLLECT):
4646
# return [TYPE_COLLECT, res[1:ord(res[0]) + 1], res[ord(res[0]) + 2:]]
47-
return [TYPE_COLLECT, res[1:ord(res[0]) + 1], res[ord(res[0]) + 2:ord(res[0]) + ord(res[0]) + 1]]
47+
src = 1+ord(res[0])
48+
dt = 1 + src
49+
return [TYPE_COLLECT, res[1:src], res[dt:dt+ord(res[src])]]
4850
elif (pack[0] == TYPE_COMMAND):
4951
result = [TYPE_COMMAND, res[1:ord(res[0]) + 1]]
5052
# print(result)

0 commit comments

Comments
 (0)