From 84e5740e6d7189e7a8c730ba95d803b9c0b1de77 Mon Sep 17 00:00:00 2001 From: kdletters <61648117+kdletters@users.noreply.github.com> Date: Wed, 3 Jun 2026 19:01:12 +0800 Subject: [PATCH] chore: switch miniprogram config to production --- miniprogram/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miniprogram/config.js b/miniprogram/config.js index aa218a03..f9488282 100644 --- a/miniprogram/config.js +++ b/miniprogram/config.js @@ -1,17 +1,17 @@ // 中文注释:这里填写已经在“小程序后台-开发-开发设置-业务域名”配置过的 H5 入口。 // 示例:https://game.example.com/ // 注意:必须是 https 域名,不能是 localhost、IP 地址或未备案域名。 -const WEB_VIEW_ENTRY_URL = 'https://dev.genarrative.world'; +const WEB_VIEW_ENTRY_URL = 'https://www.genarrative.world'; // 中文注释:这里填写 Rust api-server 的公网 HTTPS 域名,必须在“小程序后台-开发设置-request 合法域名”中配置。 // 如果 H5 和 API 同域,可保持和 WEB_VIEW_ENTRY_URL 同一个域名;请求路径会固定走 /api/auth/wechat/miniprogram-login。 -const API_BASE_URL = 'https://dev.genarrative.world'; +const API_BASE_URL = 'https://www.genarrative.world'; // 中文注释:这里填写微信小程序 AppID,用于后端记录会话来源;project.config.json 里的 appid 也要保持一致。 const MINI_PROGRAM_APP_ID = 'wx3da23ea14ca66b65'; // 中文注释:按当前上传版本填写 develop / trial / release,后端会写入会话来源快照。 -const MINI_PROGRAM_ENV = 'develop'; +const MINI_PROGRAM_ENV = 'release'; // 中文注释:给 H5 加一个来源标记,便于后续前端或后端识别这是微信小程序 web-view 宿主。 const WEB_VIEW_SOURCE_QUERY = {