From d7156c1ebbc88bd198645e87ba1e104c8a493da1 Mon Sep 17 00:00:00 2001 From: ah-max150 Date: Thu, 22 Oct 2026 09:42:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=AB=AF=E5=8F=A3=E4=B8=BA=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=205888=E3=80=81=E5=90=8E=E7=AB=AF=208070?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 +- apps/agent/.env.dev | 6 +++--- apps/agent/.env.example | 6 +++--- apps/server/README.md | 2 +- apps/server/src/main/resources/application-dev.yml | 4 ++-- apps/web/.vscode/launch.json | 2 +- apps/web/README.md | 2 +- apps/web/apps/web-antd/.env.development | 2 +- apps/web/apps/web-antd/vite.config.mts | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d0a4d45..06e869a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,7 +22,7 @@ deploy/ # 部署 TUI,流程见 deploy/MANUAL-DEPLOY.md - 测试 `./mvnw test`,单个 `./mvnw test -Dtest=RoleAspectTest` - 架构设计文档在 `docs/`(权限控制、开放接口、Agent/MCP 等),改动相关模块前先读 - `.vscode/settings.json` 已关闭 Eclipse null analysis(MyBatis-Plus 方法引用误报),不要补 `@SuppressWarnings("null")` -- 接口文档:启动后 http://localhost:8080/doc.html(knife4j) +- 接口文档:启动后 http://localhost:8070/doc.html(knife4j) - Spring profile:dev / test / pre / prod;部署环境端口 8101 / 8102 / 8103(见 deploy/MANUAL-DEPLOY.md) - **保留模块**:`sys` / `org` / `sub` / `open`(API Key 框架)/ `notify` / `agent`(LLM 配置 + MCP 框架) - **Flyway**:启动自动执行 `src/main/resources/db/migration/`(空库先跑 `V1__baseline_schema.sql`);菜单/权限种子仍由 `SysInitRunner` + `sql/init/sys_seed.sql` 灌入 diff --git a/apps/agent/.env.dev b/apps/agent/.env.dev index 3c304a0..58b0ccb 100644 --- a/apps/agent/.env.dev +++ b/apps/agent/.env.dev @@ -4,13 +4,13 @@ JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev MONGO_DB=ai_crm_angent_dev -SERVER_BASE_URL=http://localhost:8080 +SERVER_BASE_URL=http://localhost:8070 LLM_FALLBACK_ENABLED=true LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1 LLM_FALLBACK_API_KEY= LLM_FALLBACK_MODEL=deepseek-chat -CORS_ORIGINS=http://localhost:5173,http://localhost:5666 -MCP_BASE_URL=http://localhost:8080/mcp +CORS_ORIGINS=http://localhost:5173,http://localhost:5888 +MCP_BASE_URL=http://localhost:8070/mcp MCP_BEARER_TOKEN=dev-agent-mcp-token MCP_TOOLS_ENABLED=true PORT=8200 diff --git a/apps/agent/.env.example b/apps/agent/.env.example index 3a30b1b..c6e10fa 100644 --- a/apps/agent/.env.example +++ b/apps/agent/.env.example @@ -13,13 +13,13 @@ JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev MONGO_DB=ai_crm_angent_dev -SERVER_BASE_URL=http://localhost:8080 +SERVER_BASE_URL=http://localhost:8070 LLM_FALLBACK_ENABLED=true LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1 LLM_FALLBACK_API_KEY= LLM_FALLBACK_MODEL=deepseek-chat -CORS_ORIGINS=http://localhost:5173,http://localhost:5666 +CORS_ORIGINS=http://localhost:5173,http://localhost:5888 # 须与同环境 Server ecom.agent.mcp.bearer-token / AGENT_MCP_TOKEN 一致;空则 MCP 工具整段跳过 -MCP_BASE_URL=http://localhost:8080/mcp +MCP_BASE_URL=http://localhost:8070/mcp MCP_BEARER_TOKEN=dev-agent-mcp-token MCP_TOOLS_ENABLED=true diff --git a/apps/server/README.md b/apps/server/README.md index 6c4c1bf..71c384c 100644 --- a/apps/server/README.md +++ b/apps/server/README.md @@ -33,7 +33,7 @@ AI CRM 主后端 或指定端口: ```bash -./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8080" +./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8070" ``` ## 项目结构 diff --git a/apps/server/src/main/resources/application-dev.yml b/apps/server/src/main/resources/application-dev.yml index 2c4ad75..b78d9c9 100644 --- a/apps/server/src/main/resources/application-dev.yml +++ b/apps/server/src/main/resources/application-dev.yml @@ -1,7 +1,7 @@ # 开发环境(本地默认 profile) server: - port: 8080 + port: 8070 spring: datasource: @@ -29,7 +29,7 @@ sys: # multipart 通过后端上传;direct 直接上传 storage-type: oss upload-mode: direct - access-domain: http://localhost:5666 + access-domain: http://localhost:5888 ecom: license: diff --git a/apps/web/.vscode/launch.json b/apps/web/.vscode/launch.json index e967330..130c2a5 100644 --- a/apps/web/.vscode/launch.json +++ b/apps/web/.vscode/launch.json @@ -15,7 +15,7 @@ "type": "chrome", "name": "vben admin antd dev", "request": "launch", - "url": "http://localhost:5666", + "url": "http://localhost:5888", "env": { "NODE_ENV": "development" }, "sourceMaps": true, "webRoot": "${workspaceFolder}/apps/web-antd" diff --git a/apps/web/README.md b/apps/web/README.md index 0401135..e171375 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -19,7 +19,7 @@ pnpm install pnpm dev ``` -访问:http://localhost:5666 +访问:http://localhost:5888 ## 构建生产版本 diff --git a/apps/web/apps/web-antd/.env.development b/apps/web/apps/web-antd/.env.development index 1eae9e6..62090f7 100644 --- a/apps/web/apps/web-antd/.env.development +++ b/apps/web/apps/web-antd/.env.development @@ -1,5 +1,5 @@ # 端口号 -VITE_PORT=5666 +VITE_PORT=5888 VITE_BASE=/ diff --git a/apps/web/apps/web-antd/vite.config.mts b/apps/web/apps/web-antd/vite.config.mts index f60683e..4d0a634 100644 --- a/apps/web/apps/web-antd/vite.config.mts +++ b/apps/web/apps/web-antd/vite.config.mts @@ -52,7 +52,7 @@ export default defineConfig(async () => { '/api': { changeOrigin: true, // 后端服务地址 - target: 'http://localhost:8080', + target: 'http://localhost:8070', ws: true, // SSE 长连接:禁止代理空闲超时断开 timeout: 0, @@ -62,7 +62,7 @@ export default defineConfig(async () => { // 静态资源代理 - 用于访问上传的图片和文件 '/uploads': { changeOrigin: true, - target: 'http://localhost:8080', + target: 'http://localhost:8070', ws: false, }, },