Commit 4a359be5 by 张立顺

预发布环境适配

1 parent 8e33d302
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* 1开发 * 1开发
* 2测试 * 2测试
* 3生产环境 * 3生产环境
* 4预发布
*/ */
let index = 2 let index = 2
...@@ -16,7 +17,7 @@ const accountInfo = wx.getAccountInfoSync() ...@@ -16,7 +17,7 @@ const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认为2 //手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false const manual = true
const release = false const release = false
// 判断小程序环境 // 判断小程序环境
......
...@@ -58,7 +58,11 @@ const secretKey_items = { ...@@ -58,7 +58,11 @@ const secretKey_items = {
prod: { prod: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022', appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353' secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
} },
preRelease: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
} }
const domain_items = { const domain_items = {
// ip: 'http://192.168.2.59:8292', // ip: 'http://192.168.2.59:8292',
...@@ -66,9 +70,10 @@ const domain_items = { ...@@ -66,9 +70,10 @@ const domain_items = {
// ip: 'http://192.168.2.3:8292', // ip: 'http://192.168.2.3:8292',
dev: 'https://dj.dev.glsx.com.cn', dev: 'https://dj.dev.glsx.com.cn',
uat: 'https://dj.test.glsx.com.cn', uat: 'https://dj.test.glsx.com.cn',
prod: 'https://dj.glsx.com.cn' prod: 'https://dj.glsx.com.cn',
preRelease: 'https://dj.beta.glsx.com.cn'
} }
const target = ['ip', 'dev', 'uat', 'prod'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
// console.log(domain_items[target[index]]); // console.log(domain_items[target[index]]);
module.exports = { module.exports = {
domain: domain_items[target[index]], domain: domain_items[target[index]],
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.3", "libVersion": "2.8.3",
"appid": "wx06d1198e751435d1", "appid": "wx4e697bcf4954ceef",
"projectname": "dj-scrm-weapp-smartshop", "projectname": "dj-scrm-weapp-smartshop",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
......
{ {
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": false "urlCheck": true
}, },
"condition": { "condition": {
"miniprogram": { "miniprogram": {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!