|
@@ -1,10 +1,10 @@
|
|
|
// 本地开发环境
|
|
|
const local = {
|
|
|
- web_pc: 'http://tyyx.bozedu.top/',
|
|
|
- web_mobile: 'http://tyyxm.bozedu.top/',
|
|
|
+ web_pc: 'https://tyyx.bozedu.top/',
|
|
|
+ web_mobile: 'https://tyyxm.bozedu.top/',
|
|
|
|
|
|
- api: 'http://tyyx_openapi.bozedu.top/',
|
|
|
- oss: 'http://tyyx_openapi.bozedu.top/',
|
|
|
+ api: 'https://tyyxopenapi.bozedu.top/',
|
|
|
+ oss: 'https://tyyxopenapi.bozedu.top/',
|
|
|
origin: window.location.origin,
|
|
|
}
|
|
|
|
|
@@ -19,17 +19,17 @@ const development = {
|
|
|
|
|
|
// 正式服环境
|
|
|
const production = {
|
|
|
- web_pc: 'https://tyyx.bozedu.top/',
|
|
|
- web_mobile: 'https://tyyxm.bozedu.top/',
|
|
|
+ web_pc: 'https://tyyx.bozedu.net/',
|
|
|
+ web_mobile: 'https://tyyxm.bozedu.net/',
|
|
|
origin: window.location.origin,
|
|
|
- api: 'https://tyyxopenapi.bozedu.top/',
|
|
|
- oss: 'https://tyyxopenapi.bozedu.top/'
|
|
|
+ api: 'https://tyyxopenapi.bozedu.net/',
|
|
|
+ oss: 'https://tyyxopenapi.bozedu.net/'
|
|
|
}
|
|
|
|
|
|
function isWhich() {
|
|
|
if (window.location.host.includes('tyyx.bozedu.top')) {
|
|
|
return development
|
|
|
- } else if (window.location.protocol === 'https:') {
|
|
|
+ } else if(window.location.host.includes('tyyx.bozedu.net')) {
|
|
|
return production
|
|
|
} else {
|
|
|
return local
|