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