Commit 933b3755 by 张立顺

切换环境

1 parent fbc7fbdb
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 3 let index = 4
const accountInfo = wx.getAccountInfoSync() 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
// 判断小程序环境 // 判断小程序环境
......
...@@ -20,8 +20,8 @@ const secretKey_items = { ...@@ -20,8 +20,8 @@ const secretKey_items = {
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353' secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
}, },
preRelease: { preRelease: {
appKey: 'd7ffc3346fc9a45bccaaa35300d59022', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353' secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
} }
} }
const scrmSecretKey_items = { const scrmSecretKey_items = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!