|
@@ -131,11 +131,11 @@ export const matchProductApiUrl = () => {
|
|
|
'online': 'https://kt.colexiu.com'
|
|
|
}
|
|
|
}
|
|
|
- let environment: 'dev' | 'test' | 'test2' | 'online' = location.origin.includes('//dev') ? 'dev' : location.origin.includes('//test') ? 'test' : location.origin.includes('//online') ? 'online' : 'dev'
|
|
|
+ let environment: 'dev' | 'test' | 'test2' | 'online' = location.origin.includes('//dev') ? 'dev' : location.origin.includes('//test') ? 'test' : (location.origin.includes('//online') || location.origin.includes('//mec')) ? 'online' : 'dev'
|
|
|
if (query.isCbs) {
|
|
|
return apiUrls.cbs[environment] + '/cbs-app'
|
|
|
} else {
|
|
|
- const pathName = location.pathname.includes('index') ? 'gym' : location.pathname.includes('colexiu') ? 'colexiu' : location.pathname.includes('orchestra') ? 'orchestra' : 'instrument'
|
|
|
+ const pathName = location.pathname.includes('gym') ? 'gym' : location.pathname.includes('colexiu') ? 'colexiu' : location.pathname.includes('orchestra') ? 'orchestra' : 'instrument'
|
|
|
// 兼容课堂乐器,测试环境两个域名
|
|
|
if (pathName === 'instrument' && environment === 'test') {
|
|
|
environment = location.origin.includes('//test.kt') ? 'test' : 'test2'
|