|
@@ -1,19 +1,16 @@
|
|
|
// 学员地址
|
|
|
export function vaildStudentUrl() {
|
|
|
- const url = window.location.href;
|
|
|
+ const url = window.location.hostname;
|
|
|
let returnUrl = '';
|
|
|
- if (/online/.test(url)) {
|
|
|
- //线上
|
|
|
- returnUrl = 'https://mstuonline.dayaedu.com';
|
|
|
- } else if (/dev/.test(url)) {
|
|
|
+ if (/dev/.test(url)) {
|
|
|
// dev 环境
|
|
|
- returnUrl = 'http://mstudev.dayaedu.com';
|
|
|
+ returnUrl = 'https://dev.gym.lexiaoya.cn/mdaya';
|
|
|
} else if (/test/.test(url)) {
|
|
|
// dev 环境
|
|
|
- returnUrl = 'http://mstutest.dayaedu.com';
|
|
|
+ returnUrl = 'https://test.gym.lexiaoya.cn/mdaya';
|
|
|
} else {
|
|
|
- // 默认dev环境
|
|
|
- returnUrl = 'http://mstudev.dayaedu.com';
|
|
|
+ // 默认线上环境
|
|
|
+ returnUrl = 'https://gym.lexiaoya.cn/mdaya';
|
|
|
}
|
|
|
return returnUrl;
|
|
|
}
|