RTC提交
This commit is contained in:
		
							
								
								
									
										4
									
								
								ws/ws.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								ws/ws.py
									
									
									
									
									
								
							| @ -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, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 ZZX9599
					ZZX9599