Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sb_h5
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
sb_h5
Commits
6e01abfb
Commit
6e01abfb
authored
Apr 01, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新版社保 迁移测试
parent
eabd7b65
Pipeline
#21271
passed with stage
in 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
storage.js
app/service/storage.js
+3
-3
config.local.js
config/config.local.js
+6
-6
config.prod.js
config/config.prod.js
+6
-6
No files found.
app/service/storage.js
View file @
6e01abfb
...
...
@@ -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
}
`
);
ctx
.
logger
.
info
(
`【Storage】read url:
${
readUrl
}${
orderId
}
`
);
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
});
}
// 操作cus_data表记录拉取数据
...
...
config/config.local.js
View file @
6e01abfb
...
...
@@ -44,9 +44,9 @@ module.exports = () => {
};
config
.
storageAPI
=
{
host
:
'http
://tv.51gjj.com:11252
'
,
host
:
'http
s://uat-nginx.jianbing.com/mongo-service
'
,
writeUrl
:
'/data'
,
readUrl
:
'
/shebao
'
,
readUrl
:
'
?type=shebao&id=
'
,
writeType
:
'shebao'
,
readDataKey
:
'shebaoData'
,
};
...
...
@@ -57,10 +57,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'
,
fetchParnterUrl
:
''
,
signatureType
:
'shebao'
,
customerUrl
:
'/customer/query'
,
...
...
config/config.prod.js
View file @
6e01abfb
...
...
@@ -44,9 +44,9 @@ module.exports = () => {
};
config
.
storageAPI
=
{
host
:
process
.
env
.
STORAGEAPI_HOST
,
host
:
'https://lan-nginx.jianbing.com/mongo-service'
,
writeUrl
:
'/data'
,
readUrl
:
'
/shebao
'
,
readUrl
:
'
?type=shebao&id=
'
,
writeType
:
'shebao'
,
readDataKey
:
'shebaoData'
,
};
...
...
@@ -57,10 +57,10 @@ module.exports = () => {
};
config
.
signatureAPI
=
{
host
:
process
.
env
.
SIGNATUREAPI_HOST
,
fetchTokenUrl
:
'/
Access/GetT
oken'
,
fetchOrderIdUrl
:
'/
Order/GetOrderS
n'
,
signatureUrl
:
'/
Access/SignValidityC
heck'
,
host
:
'https://lan-nginx.jianbing.com/customer-validation'
,
fetchTokenUrl
:
'/
access/gett
oken'
,
fetchOrderIdUrl
:
'/
order/getorders
n'
,
signatureUrl
:
'/
access/signvalidityc
heck'
,
fetchParnterUrl
:
''
,
signatureType
:
'shebao'
,
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