From 1e96e992bfd7eb46b92106a6579c682aa7e1ffb3 Mon Sep 17 00:00:00 2001 From: Pine Date: Mon, 24 Aug 2026 20:33:57 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E5=A4=A7=E5=B1=8F):=20=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=8C=87=E5=90=91=20server-core(8090)=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=85=A5=E5=8F=A3=20/park=20=E2=80=94=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A7=20:10085=20=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.json 的 api_base / VITE_API_BASE / health 检查全部改为 server-core(8090) /park; 生产为 https://opc.pinesound.cn/park。大屏 API/媒体/OTA 均走统一入口。 --- docs/win-deploy.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/win-deploy.md b/docs/win-deploy.md index 41bec43..3e943ab 100644 --- a/docs/win-deploy.md +++ b/docs/win-deploy.md @@ -7,7 +7,7 @@ ```json { - "api_base": "http://192.168.1.9:10085", + "api_base": "http://192.168.1.9:8090/park", "mqtt_url": "ws://192.168.1.3:8083/mqtt", "mqtt_username": "dpm", "mqtt_password": "123456", @@ -15,7 +15,7 @@ } ``` -- `api_base`:FastAPI 后端地址(API / 管理后台 / 媒体) +- `api_base`:server-core 统一入口园区地址(`http://:8090/park`;生产 `https://opc.pinesound.cn/park`),大屏 API/媒体/OTA 都走它 - `mqtt_url`:EMQX Broker 的 **WebSocket** 地址(端口 8083) - `mqtt_username/password`:Broker 鉴权账号(默认 dpm / 123456,与后端 .env 一致) @@ -43,7 +43,7 @@ MQTT_PASSWORD=你的密码 在项目根目录(**构建机器上**)配置 `.env.local`(已被 gitignore): ``` -VITE_API_BASE=http://192.168.1.9:10085 +VITE_API_BASE=http://192.168.1.9:8090/park VITE_MQTT_URL=ws://192.168.1.3:8083/mqtt VITE_MQTT_USERNAME=dpm VITE_MQTT_PASSWORD=123456 @@ -56,15 +56,15 @@ VITE_MQTT_PASSWORD=123456 | 检查项 | 说明 | |---|---| | exe 未被运行 | `taskkill /f /im "昆明大学生创业园展播系统.exe"`,或直接用 `yarn build:win` | -| 后端已启动 | 浏览器打开 `http://<后端IP>:10085/api/health` 应返回 `{"ok":true,...}` | +| 后端已启动 | 浏览器打开 `http://<后端IP>:8090/park/api/health` 应返回 `{"ok":true,...}` | | Broker WebSocket 已开 | EMQX 需开启 8083 端口 WS 监听,且账号密码与 config.json 一致 | -| Windows 防火墙 | 首次运行允许,或放行出站 10085/8083(管理端上传用 10085) | +| Windows 防火墙 | 首次运行允许,或放行出站 8090/8083(大屏经 8090 调 server-core) | ## 五、常见排查 ``` # 测试后端连通(展播机 PowerShell) -Invoke-WebRequest http://192.168.1.9:10085/api/health +Invoke-WebRequest http://192.168.1.9:8090/park/api/health # 测试 Broker WS 端口 Test-NetConnection 192.168.1.3 -Port 8083