123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- export function vaildUrl() {
- const url: string = window.location.hostname;
- let returnUrl = '';
- if (/test/.test(url)) {
- // dev 环境
- returnUrl = 'https://test.kt.colexiu.com';
- } else if (/dev/.test(url)) {
- returnUrl = 'https://dev.kt.colexiu.com';
- } else if (/localhost/.test(url)) {
- // //本地环境
- returnUrl = 'https://test.kt.colexiu.com';
- } else {
- // 默认dev环境
- returnUrl = 'https://kt.colexiu.com';
- }
- return returnUrl;
- }
- export function vaildMusicScoreUrl() {
- const url: string = window.location.hostname;
- let returnUrl = '';
- if (/test/.test(url)) {
- // dev 环境
- returnUrl = 'https://test.kt.colexiu.com';
- } else if (/dev/.test(url)) {
- returnUrl = 'https://dev.kt.colexiu.com';
- } else if (/localhost/.test(url)) {
- // //本地环境
- returnUrl = 'https://test.kt.colexiu.com';
- } else {
- returnUrl = 'https://mec.colexiu.com';
- }
- return returnUrl;
- }
- export function vaildPPTUrl() {
- const url: string = window.location.hostname;
- let returnUrl = '';
- if (/test/.test(url)) {
- returnUrl = 'https://test.kt.colexiu.com/classroom-ppt';
- } else if (/dev/.test(url)) {
- returnUrl = 'https://dev.kt.colexiu.com/classroom-ppt';
- } else if (/localhost/.test(url)) {
- returnUrl = 'http://192.168.3.122:9527';
- } else {
- returnUrl = 'https://mec.colexiu.com/classroom-ppt';
- }
- return returnUrl;
- }
|