fix: 修复DEFAULT_phrases拼写错误导致JS不执行

This commit is contained in:
2026-04-12 17:45:43 +08:00
parent a62fe929c1
commit 51cc8161f1
3 changed files with 57 additions and 31 deletions

View File

@@ -532,6 +532,7 @@ async def websocket_endpoint(websocket: WebSocket, user_id: str):
while True:
data = await websocket.receive_json()
action = data.get("action")
logger.info(f"WebSocket收到消息: action={action}")
# 每次消息处理时创建新的数据库会话,处理完后关闭
try: