feat: optimize AI suggestion and workorder sync - support same-day multiple update numbering - insert new suggestions at top maintaining reverse chronological order - reference process history when generating suggestions - simplify prompts to avoid forcing log analysis - fix Chinese comment encoding issues

This commit is contained in:
赵杰 Jie Zhao (雄狮汽车科技)
2025-10-27 10:33:34 +08:00
parent 18d59b71cb
commit a4261ef06f
104 changed files with 14678 additions and 1675 deletions

View File

@@ -259,10 +259,10 @@ class WebSocketServer:
):
await asyncio.Future() # 保持服务器运行
def _process_request(self, path, request_headers):
def _process_request(self, path, request):
"""处理HTTP请求支持CORS"""
# 检查是否是WebSocket升级请求
if request_headers.get("Upgrade", "").lower() == "websocket":
if request.headers.get("Upgrade", "").lower() == "websocket":
return None # 允许WebSocket连接
# 对于非WebSocket请求返回简单的HTML页面