RTC提交

This commit is contained in:
ZZX9599
2025-09-02 19:46:34 +08:00
parent fe1b33a6e5
commit 10851b77a5
3 changed files with 117 additions and 3 deletions

View File

@ -100,8 +100,8 @@ async def send_heartbeat_ack(client_ip: str, client_timestamp: Any) -> bool:
print(f"[{datetime.datetime.now():%Y-%m-%d %H:%M:%S}] 回复心跳失败:客户端 {client_ip} 不在连接列表中")
return False
# 修复将这部分代码移出if语句块确保始终定义ack_msg
# 服务端当前格式化时间戳(字符串类型与日志时间格式匹配)
# 修复将这部分代码移出if语句块确保始终定义ack_msg
# 服务端当前格式化时间戳(字符串类型与日志时间格式匹配)
server_latest_timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
ack_msg = {
"timestamp": server_latest_timestamp,