123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- // 本地开发环境
- const local = {
- // web_pc: 'https://tyyx.bozedu.top/',
- // web_mobile: 'https://tyyxm.bozedu.top/',
- web_pc: 'https://yzy.dev.bozedu.net/',
- qqyxt: 'https://qqyxt.dev.bozedu.net/',
- yzy: 'https://yzy.dev.bozedu.net/',
- api: 'https://openapi.dev.bozedu.net/',
- uc: 'https://uc.dev.bozedu.net/',
- origin: window.location.origin,
- base: '',
- build: '',
- oss: 'https://oss.bozedu.net',
- }
- // 测试服环境
- const development = {
- web_pc: 'https://yzy.dev.bozedu.net/',
- origin: window.location.origin,
- qqyxt: 'https://qqyxt.dev.bozedu.net/',
- yzy: 'https://yzy.dev.bozedu.net/',
- api: 'https://openapi.dev.bozedu.net/',
- uc: 'https://uc.dev.bozedu.net/',
- base: '/webapps/page',
- build: '/webapps/page/liankao',
- oss: 'https://oss.bozedu.net',
- }
- // // 正式服环境
- const production = {
- web_pc: 'https://yzy.bozedu.net/',
- origin: window.location.origin,
- qqyxt: 'https://qqyxt.bozedu.net/',
- yzy: 'https://yzy.bozedu.net/',
- api: 'https://openapi.bozedu.net/',
- uc: 'https://uc.bozedu.net/',
- base: 'webapps/page',
- build: '/webapps/page/liankao',
- oss: 'https://oss.bozedu.net',
- }
- function isWhich() {
- if (development.web_pc.includes(window.location.host)) {
- return development
- } else if (production.web_pc.includes(window.location.host)) {
- return production
- } else {
- return local
- }
- }
- window.GLOBAL_CONFIG = isWhich()
|