feat: 后端添加严格的下拉表数据校验逻辑,添加新ws消息类型task_dict

This commit is contained in:
DLmaster361
2025-09-16 20:36:16 +08:00
parent 62877257e4
commit 63fd3d590b
5 changed files with 151 additions and 43 deletions

View File

@@ -48,7 +48,7 @@ async def connect_websocket(websocket: WebSocket):
try:
data = await asyncio.wait_for(websocket.receive_json(), timeout=15.0)
data = await asyncio.wait_for(websocket.receive_json(), timeout=1000005.0)
if data.get("type") == "Signal" and "Pong" in data.get("data", {}):
last_pong = time.monotonic()
elif data.get("type") == "Signal" and "Ping" in data.get("data", {}):