彩先知pc

This commit is contained in:
rain
2026-06-04 11:43:38 +08:00
parent 934046b8ef
commit 3a2081f395
243 changed files with 76952 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
// config.js
window.ENV = {
// 开发环境配置
development: {
API_BASE_URL: 'http://47.108.24.205:9100',
// API_BASE_URL: 'http://192.168.10.119:9100',
// 后端租户标识,会作为 header tenantId 发送;后面更换租户只改这里。
TENANT_ID: '000000',
CLIENT_ID: '209ef407810e3856f40870a9f0e769d7',
DEBUG: true,
APP_NAME: 'Lottery App Dev'
},
// 生产环境配置
production: {
API_BASE_URL: 'http://47.108.24.205:9100',
// 后端租户标识,会作为 header tenantId 发送;后面更换租户只改这里。
TENANT_ID: '000000',
CLIENT_ID: '209ef407810e3856f40870a9f0e769d7',
DEBUG: false,
APP_NAME: 'Lottery App'
}
};
// 根据域名自动判断环境
window.CURRENT_ENV = (function () {
if (location.hostname === 'localhost' || location.hostname === '127.0.0.1' || location.port !== '') {
return 'development';
} else {
return 'production';
}
})();
// 获取当前环境配置
window.CURRENT_CONFIG = window.ENV[window.CURRENT_ENV];