| | |
| | | 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. |
| | |
| | | // 后台提供微信小程序合法 HTTPS 域名后,在对应环境填写完整基础地址。 |
| | | // 开发环境地址由 development-server.uts 在启动时自动探测本机局域网 IP,换网后不需要改代码; |
| | | // 本机 IP 会变(见过 192.168.110.26 与 192.168.110.15),写死会表现成"登录不上"。 |
| | | const stagingBaseUrl = '' |
| | | // 必须与微信后台「开发管理 → 服务器域名」里配的完全一致(不带端口时,请求 URL 也不能带端口)。 |
| | | const stagingBaseUrl = 'https://rencaika.dqrcfwpt.com' |
| | | const productionBaseUrl = '' |
| | | |
| | | export const getApiBaseUrl = (): string => { |
| | |
| | | if (name == 'merchantOrderVerify') return '/api/merchant/orders/' |
| | | if (name == 'merchantSettlementStatistics') return '/api/merchant/settlement-statistics' |
| | | if (name == 'verificationScan') return '/api/merchant/verification/scan' |
| | | if (name == 'verificationNumericConfirm') return '/api/merchant/verification/numeric/confirm' |
| | | if (name == 'verificationConfirm') return '/api/merchant/verification/free-stay/confirm' |
| | | if (name == 'verificationFreeStayConfirm') return '/api/merchant/verification/free-stay/confirm' |
| | | if (name == 'benefitVerificationVerify') return '/api/merchant/benefit-verifications/verify' |
| | | if (name == 'manualConsumption') return '/api/merchant/manual-consumptions' |
| | | if (name == 'manualConsumptionQuote') return '/api/merchant/manual-consumptions/quote' |
| | | if (name == 'orderRevokeVerification') return '/api/merchant/orders/revoke-verification' |
| | | if (name == 'merchantOnboardingStatus') return '/api/merchant/onboarding/status' |
| | | if (name == 'merchantOnboarding') return '/api/merchant/onboarding' |
| | | if (name == 'merchantPaymentReadiness') return '/api/merchant/payment-readiness' |
| | | if (name == 'merchantPaymentReadinessVerify') return '/api/merchant/payment-readiness/verify' |
| | | if (name == 'merchantBankCards') return '/api/merchant/bank-cards' |
| | | if (name == 'merchantBankBranches') return '/api/merchant/bank-branches' |
| | | return '' |