From 30e2836742b7a8e1276c1264daa068e4ec2785e2 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 19 Jul 2026 14:17:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(mini-program):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=AE=9E=E7=8E=B0=E9=A1=B5=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20+=20.env=20=E6=8C=87=E5=90=91=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E6=9C=8D=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:.env.development 指向 localhost:19089,但本地未启动后端, 所有 API 请求 ERR_CONNECTION_REFUSED。 切换至 https://lifescript.happylifeos.com/api(生产服务器), 符合 CLAUDE.md 服务器端验收规则。 此修复与 generationDisplayText + 继续会话 一起完成完整心愿实现流程验证。 --- mini-program/.env.development | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini-program/.env.development b/mini-program/.env.development index 92d2f87..238e2c0 100644 --- a/mini-program/.env.development +++ b/mini-program/.env.development @@ -1,12 +1,12 @@ # 开发环境配置(本地开发调试) VITE_APP_ENV=dev -# 本地环境 +# 本地环境(本地不启动后端,禁用) # VITE_API_BASE_URL=http://localhost:19089/api # VITE_WS_URL=ws://localhost:19089/ws # 直连后端服务(不经过 Nginx) # VITE_API_BASE_URL=http://101.200.208.45:19089/api # VITE_WS_URL=ws://101.200.208.45:19089/ws -# 测试环境 +# 测试环境(H5 走生产服务器后端,符合 CLAUDE.md 服务器端验收规则) VITE_API_BASE_URL=https://lifescript.happylifeos.com/api VITE_WS_URL=wss://lifescript.happylifeos.com/ws VITE_DEBUG=true