Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
gjjh5
Commits
392db97a
Commit
392db97a
authored
Apr 02, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移gjj
parent
68cfe540
Pipeline
#21307
passed with stage
in 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
storage.js
app/service/storage.js
+3
-3
config.local.js
config/config.local.js
+7
-7
config.prod.js
config/config.prod.js
+7
-7
No files found.
app/service/storage.js
View file @
392db97a
...
...
@@ -44,14 +44,14 @@ class StorageService extends Service {
async
read
(
orderId
,
appKey
)
{
const
{
readUrl
,
readDataKey
,
ctx
}
=
this
;
const
result
=
await
this
.
_request
(
`
${
readUrl
}
/
${
orderId
}
`
,
{
const
result
=
await
this
.
_request
(
`
${
readUrl
}${
orderId
}
`
,
{
method
:
'get'
,
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`【Storage】read url:
${
readUrl
}
/
${
orderId
}
write result:`
,
JSON
.
stringify
(
result
.
data
));
ctx
.
logger
.
info
(
`【Storage】read url:
${
readUrl
}${
orderId
}
write result:`
,
JSON
.
stringify
(
result
.
data
));
if
(
result
&&
result
.
data
&&
result
.
data
.
code
!==
0
)
{
ctx
.
logger
.
error
(
`storageAPI read
${
readUrl
}
/
${
orderId
}
`
,
JSON
.
stringify
(
result
.
data
));
ctx
.
logger
.
error
(
`storageAPI read
${
readUrl
}${
orderId
}
`
,
JSON
.
stringify
(
result
.
data
));
ctx
.
throw
(
400
,
{
message
:
result
.
data
.
msg
});
}
await
ctx
.
model
.
Cusdata
.
create
({
...
...
config/config.local.js
View file @
392db97a
...
...
@@ -57,9 +57,9 @@ module.exports = () => {
};
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'
,
};
...
...
@@ -70,10 +70,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 @
392db97a
...
...
@@ -48,9 +48,9 @@ module.exports = () => {
};
config
.
storageAPI
=
{
host
:
process
.
env
.
STORAGEAPI_HOST
||
'http://tv.51gjj.com:11252
'
,
writeUrl
:
'
/data
'
,
readUrl
:
'
/gjj
'
,
host
:
'https://uat-nginx.jianbing.com/mongo-service/data
'
,
writeUrl
:
''
,
readUrl
:
'
?type=gjj&id=
'
,
writeType
:
'gjj'
,
readDataKey
:
'gjjData'
,
};
...
...
@@ -61,10 +61,10 @@ module.exports = () => {
};
config
.
signatureAPI
=
{
host
:
process
.
env
.
SIGNATUREAPI_HOST
||
'http://tj3.51gjj.com:5118
'
,
fetchTokenUrl
:
'/
Access/GetT
oken'
,
fetchOrderIdUrl
:
'/
Order/GetOrderS
n'
,
signatureUrl
:
'/
Access/SignValidityC
heck'
,
host
:
'https://uat-nginx.jianbing.com/customer-validation
'
,
fetchTokenUrl
:
'/
access/gett
oken'
,
fetchOrderIdUrl
:
'/
order/getorders
n'
,
signatureUrl
:
'/
access/signvalidityc
heck'
,
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