luohailiang 2 years ago
parent
commit
66c16fe508
1 changed files with 26 additions and 25 deletions
  1. 26 25
      public/config.js

+ 26 - 25
public/config.js

@@ -1,44 +1,45 @@
 // 本地开发环境
 const local = {
-  web_pc: 'https://nml.bozedu.net/',
-  web_mobile: 'https://nmlm.bozedu.net/',
+    web_pc: 'https://nml.bozedu.net/',
+    web_mobile: 'https://nmlm.bozedu.net/',
 
-  api: 'https://nmlopenapi.bozedu.net/',
-  oss: 'https://nmlopenapi.bozedu.net/',
-
-  appid:'wx1263e3a4d3d88e59',
+    api: 'https://nmlopenapi.bozedu.net/',
+    oss: 'https://nmlopenapi.bozedu.net/',
+    uc: 'https://uc.bozedu.net/',
+    appid: 'wx1263e3a4d3d88e59',
 }
 
 // 测试服环境
 const development = {
-  web_pc: 'https://nml.bozedu.net/',
-  web_mobile: 'https://nmlm.bozedu.net/',
-
-  api: 'https://nmlopenapi.bozedu.net/',
-  oss: 'https://nmlopenapi.bozedu.net/',
+    web_pc: 'https://nml.bozedu.net/',
+    web_mobile: 'https://nmlm.bozedu.net/',
+    uc: 'https://uc.bozedu.net/',
+    api: 'https://nmlopenapi.bozedu.net/',
+    oss: 'https://nmlopenapi.bozedu.net/',
 
-  appid:'wx1263e3a4d3d88e59',
+    appid: 'wx1263e3a4d3d88e59',
 }
 
 // 正式服环境
 const production = {
-  web_pc: 'https://nml.bozedu.net/',
-  web_mobile: 'https://nmlm.bozedu.net/',
+    web_pc: 'https://nml.bozedu.net/',
+    web_mobile: 'https://nmlm.bozedu.net/',
+    uc: 'https://uc.bozedu.net/',
+    api: 'https://nmlopenapi.bozedu.net/',
+    oss: 'https://nmlopenapi.bozedu.net/',
 
-  api: 'https://nmlopenapi.bozedu.net/',
-  oss: 'https://nmlopenapi.bozedu.net/',
-  
-  appid:'wx1263e3a4d3d88e59',
+    appid: 'wx1263e3a4d3d88e59',
 }
 
 function isWhich() {
-  if (window.location.host.includes('nmlm.bozedu.net')) {
-    return development
-  } else if (window.location.host.includes('nmlm.bozedu.net')) {
-    return production
-  } else {
-    return local
-  }
+    if (window.location.host.includes('nmlm.bozedu.net')) {
+        return development
+    } else if (window.location.host.includes('nmlm.bozedu.net')) {
+        return production
+    } else {
+        return local
+    }
 }
+
 window.GLOBAL_CONFIG = isWhich()