Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax_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
tax_api
Commits
54dcc2c1
Commit
54dcc2c1
authored
May 16, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移
parent
ecc07a00
Pipeline
#23391
passed with stage
in 3 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
storage.js
app/service/storage.js
+1
-1
config.local.js
config/config.local.js
+8
-8
config.prod.js
config/config.prod.js
+5
-5
No files found.
app/service/storage.js
View file @
54dcc2c1
...
...
@@ -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 @
54dcc2c1
...
...
@@ -52,9 +52,9 @@ module.exports = () => {
};
config
.
storageAPI
=
{
host
:
'http
://tv.51gjj.com:11252
'
,
writeUrl
:
'
/data
'
,
readUrl
:
'
/IncomeTax
'
,
host
:
'http
s://uat-nginx.jianbing.com/mongo-service/data
'
,
writeUrl
:
''
,
readUrl
:
'
?type=IncomeTax&id=
'
,
writeType
:
'incomeTax'
,
readDataKey
:
'incometaxData'
,
};
...
...
@@ -65,13 +65,13 @@ 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
:
'incomeTax'
,
customerUrl
:
'/customer/query'
customerUrl
:
'/customer/query'
,
};
config
.
lockKeys
=
{
...
...
config/config.prod.js
View file @
54dcc2c1
...
...
@@ -57,8 +57,8 @@ module.exports = () => {
config
.
storageAPI
=
{
host
:
process
.
env
.
STORAGEAPI_HOST
,
writeUrl
:
'
/data
'
,
readUrl
:
'
/IncomeTax
'
,
writeUrl
:
''
,
readUrl
:
'
?type=IncomeTax&id=
'
,
writeType
:
'incomeTax'
,
readDataKey
:
'incometaxData'
,
};
...
...
@@ -70,9 +70,9 @@ module.exports = () => {
config
.
signatureAPI
=
{
host
:
process
.
env
.
SIGNATUREAPI_HOST
,
fetchTokenUrl
:
'/
Access/GetT
oken'
,
fetchOrderIdUrl
:
'/
Order/GetOrderS
n'
,
signatureUrl
:
'/
Access/SignValidityC
heck'
,
fetchTokenUrl
:
'/
access/gett
oken'
,
fetchOrderIdUrl
:
'/
order/getorders
n'
,
signatureUrl
:
'/
access/signvalidityc
heck'
,
fetchParnterUrl
:
''
,
signatureType
:
'incomeTax'
,
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