lex-xin %!s(int64=4) %!d(string=hai) anos
pai
achega
2e606eec66
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/utils/validate.js

+ 4 - 0
src/utils/validate.js

@@ -31,6 +31,8 @@ export function vaildStudentUrl() {
   let returnUrl = ''
   if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mstudev.dayaedu.com'
+  } else if (/test/.test(url)) { // dev 环境
+    returnUrl = 'http://mstutest.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mstuonline.dayaedu.com'
   } else { // 默认dev环境
@@ -45,6 +47,8 @@ export function vaildTeacherUrl() {
   let returnUrl = ''
   if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mteadev.dayaedu.com'
+  } else if (/test/.test(url)) { // dev 环境
+    returnUrl = 'http://mteatest.dayaedu.com'
   } else if (/online/.test(url)) { //线上
     returnUrl = 'https://mteaonline.dayaedu.com'
   } else { // 默认dev环境