完善时戳

This commit is contained in:
CSSC-WORK\murmur 2023-09-12 17:51:15 +08:00
parent 8500ea3ab7
commit dc660c7e7b

View File

@ -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, "疑是非法连接")