From dc660c7e7b5a2b82c0f48c92e733f8ad2a6f53b6 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Tue, 12 Sep 2023 17:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=97=B6=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 743a70e..44d745d 100755 --- a/server.py +++ b/server.py @@ -304,7 +304,7 @@ def get_info(data): # x= int.from_bytes(x) return str(x) pass - sn = "-".join(list(map(h2s,data[12:17]))) + sn = "_".join(list(map(h2s,data[12:19]))) index=int.from_bytes(data[20:21],byteorder="big") cnt=int.from_bytes(data[21:22],byteorder="big") t=f"流水号20{sn} \n序号\[{index}/{cnt}]" @@ -441,9 +441,9 @@ class MyServer(socketserver.BaseRequestHandler): t = f"从{str(self.client_address)}<->[{get_ccid(conn).decode() if get_ccid(conn) else 'None'}]接收到新数据,长度{len(data)}字节。" print(t) print(data.hex(" ")) - # s2wx("","",t) + s2wx("","",t) print("--",len(self.recDataBuff)) - print(self.recDataBuff[:]) + # print(self.recDataBuff[:]) if tt_decode(conn, data): self.err= "切断。" print(self.client_address, "疑是非法连接")