Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-weapp-smartshop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4a359be5
authored
Aug 03, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预发布环境适配
1 parent
8e33d302
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
config.js
packagesPayment/environment.js
project.config.json
project.private.config.json
config.js
View file @
4a359be
...
@@ -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
=
fals
e
const
manual
=
tru
e
const
release
=
false
const
release
=
false
// 判断小程序环境
// 判断小程序环境
...
...
packagesPayment/environment.js
View file @
4a359be
...
@@ -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
]],
...
...
project.config.json
View file @
4a359be
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.3"
,
"libVersion"
:
"2.8.3"
,
"appid"
:
"wx
06d1198e751435d1
"
,
"appid"
:
"wx
4e697bcf4954ceef
"
,
"projectname"
:
"dj-scrm-weapp-smartshop"
,
"projectname"
:
"dj-scrm-weapp-smartshop"
,
"simulatorType"
:
"wechat"
,
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
"simulatorPluginLibVersion"
:
{},
...
...
project.private.config.json
View file @
4a359be
{
{
"setting"
:
{
"setting"
:
{
"compileHotReLoad"
:
true
,
"compileHotReLoad"
:
true
,
"urlCheck"
:
fals
e
"urlCheck"
:
tru
e
},
},
"condition"
:
{
"condition"
:
{
"miniprogram"
:
{
"miniprogram"
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment