yeg
2026-09-29 160e97a034e1b9fad4052d449da0eeecc9540e97
rencaika_merchant/config/api.uts
@@ -4,7 +4,8 @@
import { developmentApiBaseUrl } from './development-server.uts'
// 切换环境时只修改这里;页面和业务服务不得自行拼接后台域名。
export const apiEnvironment: ApiEnvironment = 'development'
// 2026-09-29:体验版指向攀枝花测试环境。本机联调改回 'development';生产上线改 'production'。
export const apiEnvironment: ApiEnvironment = 'staging'
// Keep the business pages accessible while merchant APIs are still being integrated.
// This flag is ignored outside the development environment.
@@ -20,7 +21,8 @@
// 后台提供微信小程序合法 HTTPS 域名后,在对应环境填写完整基础地址。
// 开发环境地址由 development-server.uts 在启动时自动探测本机局域网 IP,换网后不需要改代码;
// 本机 IP 会变(见过 192.168.110.26 与 192.168.110.15),写死会表现成"登录不上"。
const stagingBaseUrl = ''
// 必须与微信后台「开发管理 → 服务器域名」里配的完全一致(含端口)。
const stagingBaseUrl = 'https://www.dqrcfwpt.com:8081'
const productionBaseUrl = ''
export const getApiBaseUrl = (): string => {