|
@@ -29,9 +29,7 @@ export function isvalidPhone(str) {
|
|
export function vaildStudentUrl() {
|
|
export function vaildStudentUrl() {
|
|
let url = window.location.href
|
|
let url = window.location.href
|
|
let returnUrl = ''
|
|
let returnUrl = ''
|
|
- if (/test/.test(url)) { // test环境
|
|
|
|
- returnUrl = 'http://mstutest.dayaedu.com'
|
|
|
|
- } else if (/dev/.test(url)) { // dev 环境
|
|
|
|
|
|
+ if (/dev/.test(url)) { // dev 环境
|
|
returnUrl = 'http://mstudev.dayaedu.com'
|
|
returnUrl = 'http://mstudev.dayaedu.com'
|
|
} else if (/online/.test(url)) { //线上
|
|
} else if (/online/.test(url)) { //线上
|
|
returnUrl = 'https://mstuonline.dayaedu.com'
|
|
returnUrl = 'https://mstuonline.dayaedu.com'
|
|
@@ -45,9 +43,7 @@ export function vaildStudentUrl() {
|
|
export function vaildTeacherUrl() {
|
|
export function vaildTeacherUrl() {
|
|
let url = window.location.href
|
|
let url = window.location.href
|
|
let returnUrl = ''
|
|
let returnUrl = ''
|
|
- if (/test/.test(url)) { // test环境
|
|
|
|
- returnUrl = 'http://mteatest.dayaedu.com'
|
|
|
|
- } else if (/dev/.test(url)) { // dev 环境
|
|
|
|
|
|
+ if (/dev/.test(url)) { // dev 环境
|
|
returnUrl = 'http://mteadev.dayaedu.com'
|
|
returnUrl = 'http://mteadev.dayaedu.com'
|
|
} else if (/online/.test(url)) { //线上
|
|
} else if (/online/.test(url)) { //线上
|
|
returnUrl = 'https://mteaonline.dayaedu.com'
|
|
returnUrl = 'https://mteaonline.dayaedu.com'
|