Ver Fonte

修改地址

lex há 11 meses atrás
pai
commit
44ba788190
2 ficheiros alterados com 9 adições e 9 exclusões
  1. 5 5
      index.html
  2. 4 4
      src/helpers/utils.ts

+ 5 - 5
index.html

@@ -45,13 +45,13 @@
   <script type="text/javascript">
     // var url =  window.location.origin + '/_AMapService'
     window._AMapSecurityConfig = {
-      serviceHost: 'https://online.dayaedu.com/_AMapService'
+      serviceHost: 'https://gym.lexiaoya.cn/_AMapService'
     }
 
-      // window._AMapSecurityConfig = {
-      //     serviceHost: 'http://192.168.3.120:8001/_AMapService',
-      //     // 例如 :serviceHost:'http://1.1.1.1:80/_AMapService',
-      //   }
+    // window._AMapSecurityConfig = {
+    //     serviceHost: 'http://192.168.3.120:8001/_AMapService',
+    //     // 例如 :serviceHost:'http://1.1.1.1:80/_AMapService',
+    //   }
   </script>
 </body>
 

+ 4 - 4
src/helpers/utils.ts

@@ -140,16 +140,16 @@ export function vaildTeachingUrl() {
   let returnUrl = '';
   if (/online/.test(url)) {
     //线上
-    returnUrl = 'https://manonline.dayaedu.com';
+    returnUrl = 'https://gym.lexiaoya.cn';
   } else if (/dev/.test(url)) {
     // dev 环境
-    returnUrl = 'http://mandev.dayaedu.com';
+    returnUrl = 'http://dev.gym.lexiaoya.cn';
   } else if (/test/.test(url)) {
     // dev 环境
-    returnUrl = 'http://mantest.dayaedu.com';
+    returnUrl = 'http://test.gym.lexiaoya.cn';
   } else {
     // 默认dev环境
-    returnUrl = 'http://mantest.dayaedu.com';
+    returnUrl = 'http://test.gym.lexiaoya.cn';
   }
   return returnUrl;
 }