Эх сурвалжийг харах

fix(config): 调整环境配置和修复多余空行

- 注释和启用部分开发、体验和正式环境地址
- 修复manifest.json文件末尾多余空行
- 修改user store中微信小程序跳转环境为release
- 清理无用注释,保持代码整洁
zhangtao 9 цаг өмнө
parent
commit
d9ac9ecdb4

+ 6 - 6
src/config/index.ts

@@ -2,7 +2,7 @@ const mapEnvVersion = {
   /**
    * 开发版
    */
-  develop: 'http://192.168.1.166:8080', // 张
+  // develop: 'http://192.168.1.166:8080', // 张
   // develop: 'http://192.168.1.101:8080',
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
@@ -14,16 +14,16 @@ const mapEnvVersion = {
   // develop: 'http://47.109.84.152:8081', // 测试代理
   // develop: 'https://5ed0f7cc.r9.vip.cpolar.cn',
   // develop: 'https://25740642.r3.cpolar.top',
-  // develop: 'https://smqjh.api.zswlgz.com',
+  develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版
    */
   // trial: "http://192.168.1.166:8080/jeecg-boot",
   // trial: 'http://192.168.0.157:8080',
-  trial: 'http://47.109.84.152:8081',
+  // trial: 'http://47.109.84.152:8081',
   // trial: 'http://192.168.0.11:8081', // 王
   // trial: 'http://192.168.1.166:8080,
-  // trial: 'https://smqjh.api.zswlgz.com',
+  trial: 'https://smqjh.api.zswlgz.com',
   /**
    * 正式版
    */
@@ -51,8 +51,8 @@ function handleEnvVersion() {
     // development: 'http://192.168.0.11:8081',
     // development: 'http://192.168.1.21:8080',
     // development: 'https://smqjh.api.zswlgz.com',
-    // production: 'https://smqjh.api.zswlgz.com',
-    production: 'http://47.109.84.152:8081',
+    production: 'https://smqjh.api.zswlgz.com',
+    // production: 'http://47.109.84.152:8081',
   }
   console.log(mode, '==================mode===================')
   return h5Server[mode as 'development' | 'production']

+ 2 - 2
src/store/user.ts

@@ -599,8 +599,8 @@ export const useUserStore = defineStore('user', {
         .join('&')
       const path = 'subPack-common/threePay/index'
       // const env = 'develop'
-      const env = 'trial'
-      // const env = 'release'
+      // const env = 'trial'
+      const env = 'release'
       window.location.href = `weixin://dl/business/?appid=wx43b5b906cc30ed0b&path=${path}&query=${encodeURIComponent(queryString)}&env_version=${env}`
       uni.hideLoading()
       // #endif