Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 51ac2e2b
authored
Jan 01, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交生产
1 parent
6a955ab4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
api/environment.js
api/request.js
project.private.config.json
api/environment.js
View file @
51ac2e2
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
3预发布
4生产
4生产
*/
*/
const
index
=
2
;
const
index
=
4
;
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
...
...
api/request.js
View file @
51ac2e2
...
@@ -124,7 +124,7 @@ class Request {
...
@@ -124,7 +124,7 @@ class Request {
}
}
getMock
()
{
getMock
()
{
let
url
=
'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
let
url
=
'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
if
(
index
==
4
)
url
=
'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
if
(
index
==
4
||
index
==
3
)
url
=
'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
wx
.
request
({
wx
.
request
({
url
,
url
,
...
...
project.private.config.json
View file @
51ac2e2
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
""
,
"name"
:
"
测试
"
,
"pathName"
:
"pages/tab/index/index"
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D
3275
"
,
"query"
:
"scene=sceneId%3D
406
"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
...
@@ -74,6 +74,20 @@
...
@@ -74,6 +74,20 @@
"query"
:
"cardId=38&merchant=44210895"
,
"query"
:
"cardId=38&merchant=44210895"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"预发布"
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D408"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"生产"
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D5116"
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
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