Add HL MES manager with AI assistant service

This commit is contained in:
2026-05-25 18:28:10 +08:00
commit 35f11c095d
881 changed files with 172675 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# 运维与风险知识库
## AI/MCP 服务
- 目录ai-mcp-service
- 后台启动:.\start.ps1
- 状态检查:.\status.ps1
- 停止服务:.\stop.ps1
- 健康检查http://127.0.0.1:8787/health
- DeepSeek Key 配置ai-mcp-service/.env 中的 DEEPSEEK_API_KEY
## 前端配置
- 开发配置:前端源码/HL_MES_manager/static/config.js
- 发布配置:前端源码/HL_MES_manager/dist/static/config.js
- 后端地址baseURL
- AI 服务地址aiMcpURL
## 后端配置
- 主配置MES_Manage_standard/Web.config
- 主库MESBasicDB_HL
- 主入口submit/MESCommonBase.ashx
## 安全风险
- Web.config 存在明文数据库账号密码。
- CORS 当前允许任意来源。
- 通用接口支持 name/param 动态调用,应限制 AI 写入权限。
- AI 服务默认禁止写入类操作,只有 MES_AI_ALLOW_WRITE=1 才放开。
- 前端登录态主要依赖 Cookiesession 校验逻辑未启用。