修复缓存trlog日志bug

This commit is contained in:
CSSC-WORK\murmur 2024-01-25 10:49:25 +08:00
parent 659668db2b
commit b3a5e76a08

View File

@ -326,7 +326,7 @@ def tt_hh(addr, data):
add_timestamp()
# 按缓存先后顺序发送
addr.send(msgs[i])
save2file(f"[SERVER --> {get_ccid(addr).decode() if get_ccid(addr) else 'None'}][{len(msg)}] {msg.hex(' ')}")
save2file(f"[SERVER --> {get_ccid(addr).decode() if get_ccid(addr) else 'None'}][{len(msgs)}] {msgs.hex(' ')}")
time.sleep(1)
# 成功则清空已发送成功的缓存数据
cache[ccid].pop(0)