Files
EasyCard/frontend_miniprogram/miniprogram/config/runtime.ts
陈子默 ac7eb6d85d fix: 修复开放接口鉴权与小程序联调配置
- 注册小程序租户过滤器并放宽 /api/open 路径匹配

- 移除全局异常吞没逻辑并修复律师列表筛选空值处理

- 统一小程序 develop、trial、release 环境接口域名
2026-03-21 11:18:04 +08:00

17 lines
601 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export type MiniProgramEnvVersion = 'develop' | 'trial' | 'release';
export const API_BASE_URL_OVERRIDE_KEY = 'api_base_url_override';
export interface TenantRuntimeConfig {
apiBaseUrlByEnv: Record<MiniProgramEnvVersion, string>;
}
// develop 环境允许本地联调trial/release 请替换为已备案且已配置到小程序后台“服务器域名”的 HTTPS 域名。
export const tenantRuntimeConfig: TenantRuntimeConfig = {
apiBaseUrlByEnv: {
develop: 'https://easyflowtech.cn/card',
trial: 'https://easyflowtech.cn/card',
release: 'https://easyflowtech.cn/card',
},
};