Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjj_api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
gjj_api
Commits
b832937b
Commit
b832937b
authored
Apr 30, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjjAPI 迁移
parent
255cfab7
Pipeline
#22626
passed with stage
in 5 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
storage.js
app/service/storage.js
+1
-1
config.local.js
config/config.local.js
+7
-7
config.prod.js
config/config.prod.js
+6
-7
No files found.
app/service/storage.js
View file @
b832937b
...
...
@@ -36,7 +36,7 @@ class StorageService extends Service {
});
ctx
.
logger
.
info
(
`【Storage】write url:
${
writeUrl
}
params`
,
JSON
.
stringify
({
...
data
,
serviceType
:
writeType
}),
'result:'
,
JSON
.
stringify
(
result
.
data
));
if
(
result
.
data
.
code
!==
'0'
)
{
if
(
result
.
data
.
code
!==
'0'
||
result
.
data
.
code
!==
0
)
{
throw
new
Error
(
'存储数据出错'
);
}
return
;
...
...
config/config.local.js
View file @
b832937b
...
...
@@ -52,9 +52,9 @@ module.exports = () => {
config
.
cityListAPI
=
'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings'
;
config
.
storageAPI
=
{
host
:
'http
://tv.51gjj.com:11252
'
,
writeUrl
:
'
/data
'
,
readUrl
:
'
/gjj
'
,
host
:
'http
s://uat-nginx.jianbing.com/mongo-service/data
'
,
writeUrl
:
''
,
readUrl
:
'
?type=gjj&id=
'
,
writeType
:
'gjj'
,
readDataKey
:
'gjjData'
,
};
...
...
@@ -65,10 +65,10 @@ module.exports = () => {
};
config
.
signatureAPI
=
{
host
:
'http
://tj3.51gjj.com:5118
'
,
fetchTokenUrl
:
'/
Access/GetT
oken'
,
fetchOrderIdUrl
:
'/
Order/GetOrderS
n'
,
signatureUrl
:
'/
Access/SignValidityC
heck'
,
host
:
'http
s://uat-nginx.jianbing.com/customer-validation
'
,
fetchTokenUrl
:
'/
access/gett
oken'
,
fetchOrderIdUrl
:
'/
order/getorders
n'
,
signatureUrl
:
'/
access/signvalidityc
heck'
,
signatureType
:
'gjj'
,
customerUrl
:
'/customer/query'
,
};
...
...
config/config.prod.js
View file @
b832937b
...
...
@@ -47,9 +47,9 @@ module.exports = () => {
};
config
.
storageAPI
=
{
host
:
process
.
env
.
STORAGEAPI_HOST
||
'http://tv.51gjj.com:11252'
,
writeUrl
:
'
/data
'
,
readUrl
:
'
/gjj
'
,
host
:
process
.
env
.
STORAGEAPI_HOST
,
writeUrl
:
''
,
readUrl
:
'
?type=gjj&id=
'
,
writeType
:
'gjj'
,
readDataKey
:
'gjjData'
,
};
...
...
@@ -62,11 +62,10 @@ module.exports = () => {
};
config
.
signatureAPI
=
{
host
:
process
.
env
.
SIGNATUREAPI_HOST
||
'http://tj3.51gjj.com:5118'
,
fetchTokenUrl
:
'/
Access/GetT
oken'
,
fetchOrderIdUrl
:
'/
Order/GetOrderS
n'
,
host
:
process
.
env
.
SIGNATUREAPI_HOST
,
fetchTokenUrl
:
'/
access/gett
oken'
,
fetchOrderIdUrl
:
'/
order/getorders
n'
,
signatureUrl
:
'/Access/SignValidityCheck'
,
fetchParnterUrl
:
''
,
signatureType
:
'gjj'
,
customerUrl
:
'/customer/query'
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment