feat: 新增智控台管理websocket服务器端【配置拉取】和【重启】

This commit is contained in:
caixypromise
2025-05-20 20:02:16 +08:00
parent 888b71a196
commit 34d9857089
16 changed files with 1320 additions and 23 deletions
+4 -2
View File
@@ -273,9 +273,10 @@ class ConnectionHandler:
await self.websocket.send(
json.dumps(
{
"type": "server_response",
"type": "server",
"status": "success",
"message": "服务器重启中...",
"content": {'action': "restart"}
}
)
)
@@ -302,9 +303,10 @@ class ConnectionHandler:
await self.websocket.send(
json.dumps(
{
"type": "server_response",
"type": "server",
"status": "error",
"message": f"Restart failed: {str(e)}",
'content': {'action': "restart"}
}
)
)