浏览代码

修改域名

lex-xin 4 年之前
父节点
当前提交
2e606eec66
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/utils/validate.js

+ 4 - 0
src/utils/validate.js

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