- 将项目中所有“威硕谱软件”名称修改为“威数谱软件” - 更新协议页面、欢迎消息、礼品卡等多处文本内容 - 修改小程序配置文件中的项目名称和显示标题 - 优化开发者申请页部分文案,明确开发者身份描述 - 保证所有界面及配置中的品牌名称统一一致
32 lines
1.0 KiB
JavaScript
32 lines
1.0 KiB
JavaScript
const CURRENT_ENV = process.env.NODE_ENV === 'production' ? 'production' : 'development'
|
|
|
|
export const ENV_CONFIG = {
|
|
development: {
|
|
API_BASE_URL: 'https://shop-api.websoft.top/api',
|
|
SERVER_API_URL: 'https://server.websoft.top/api',
|
|
WEBSOPY_API_BASE_URL: 'https://websopy-api.websoft.top/api',
|
|
APP_NAME: '威数谱软件',
|
|
DEBUG: 'true',
|
|
},
|
|
test: {
|
|
API_BASE_URL: 'https://shop-api.websoft.top/api',
|
|
SERVER_API_URL: 'https://server.websoft.top/api',
|
|
WEBSOPY_API_BASE_URL: 'https://websopy-api.websoft.top/api',
|
|
APP_NAME: '威数谱软件',
|
|
DEBUG: 'true',
|
|
},
|
|
production: {
|
|
API_BASE_URL: 'https://shop-api.websoft.top/api',
|
|
SERVER_API_URL: 'https://server.websoft.top/api',
|
|
WEBSOPY_API_BASE_URL: 'https://websopy-api.websoft.top/api',
|
|
APP_NAME: '威数谱软件',
|
|
DEBUG: 'false',
|
|
},
|
|
}
|
|
|
|
export function getEnvConfig() {
|
|
return ENV_CONFIG[CURRENT_ENV] || ENV_CONFIG.development
|
|
}
|
|
|
|
export const { API_BASE_URL, SERVER_API_URL, WEBSOPY_API_BASE_URL, APP_NAME, DEBUG } = getEnvConfig()
|