|
@@ -1,10 +1,6 @@
|
|
|
export function vaildUrl() {
|
|
|
const url: string = window.location.href;
|
|
|
let returnUrl = '';
|
|
|
- // if (/192/.test(url) || /localhost/.test(url)) {
|
|
|
- // //本地环境
|
|
|
- // returnUrl = 'https://test.kt.colexiu.com';
|
|
|
- // } else
|
|
|
if (/kt.colexiu.com/.test(url)) {
|
|
|
returnUrl = 'https://kt.colexiu.com';
|
|
|
} else if (/test/.test(url)) {
|
|
@@ -12,6 +8,9 @@ export function vaildUrl() {
|
|
|
returnUrl = 'https://test.kt.colexiu.com';
|
|
|
} else if (/dev/.test(url)) {
|
|
|
returnUrl = 'https://dev.kt.colexiu.com';
|
|
|
+ } else if (/192/.test(url) || /localhost/.test(url)) {
|
|
|
+ // //本地环境
|
|
|
+ returnUrl = 'https://test.kt.colexiu.com';
|
|
|
} else {
|
|
|
// 默认dev环境
|
|
|
returnUrl = 'https://kt.colexiu.com';
|
|
@@ -22,10 +21,7 @@ export function vaildUrl() {
|
|
|
export function vaildMusicScoreUrl() {
|
|
|
const url: string = window.location.href;
|
|
|
let returnUrl = '';
|
|
|
- // if (/192/.test(url) || /localhost/.test(url)) {
|
|
|
- // //本地环境
|
|
|
- // returnUrl = 'https://test.kt.colexiu.com';
|
|
|
- // } else
|
|
|
+
|
|
|
if (/kt.colexiu.com/.test(url)) {
|
|
|
returnUrl = 'https://mec.colexiu.com';
|
|
|
} else if (/test/.test(url)) {
|
|
@@ -33,6 +29,9 @@ export function vaildMusicScoreUrl() {
|
|
|
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';
|
|
|
}
|