Browse Source

接口域名管理优化

panyong 1 year ago
parent
commit
6923aa55bb
1 changed files with 13 additions and 6 deletions
  1. 13 6
      htmldev/shiningWxMini/utils/config.js

+ 13 - 6
htmldev/shiningWxMini/utils/config.js

@@ -1,13 +1,20 @@
-const envDomain = {
-  // apiDomain: 'https://shining.codedreamit.com',
-  // h5Domain: 'https://shining-h5.codedreamit.com',
-  // vrDomain: 'https://shining-h5-1.codedreamit.com'
-  // ---------------华丽的分割线---------------
+// 测试环境
+const devDomain = {
+  apiDomain: 'https://shining.codedreamit.com',
+  h5Domain: 'https://shining-h5.codedreamit.com',
+  vrDomain: 'https://shining-h5-1.codedreamit.com'
+}
+
+// 生产环境
+const prodDomain = {
   apiDomain: 'https://shining-api.chazhujianghu.com',
   h5Domain: 'https://shining-h5.chazhujianghu.com',
   vrDomain: 'https://shining-h5-1.chazhujianghu.com'
 }
 
 module.exports = {
-  envDomain
+  envDomain: {
+    // ...devDomain
+    ...prodDomain
+  }
 }