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
ca3fa992
Commit
ca3fa992
authored
Mar 21, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tax_api
parent
f89dfa94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
order.js
app/controller/order.js
+4
-4
notifyUrl.js
app/schedule/notifyUrl.js
+1
-2
No files found.
app/controller/order.js
View file @
ca3fa992
...
...
@@ -48,9 +48,9 @@ class OrderController extends Controller {
try
{
ctx
.
validate
(
this
.
showRule
);
const
{
appKey
,
orderSn
}
=
ctx
.
request
.
body
.
params
;
//
await service.signature.signatureCheck(ctx.request.body);
await
service
.
signature
.
signatureCheck
(
ctx
.
request
.
body
);
let
data
=
await
service
.
cache
.
get
({
key
:
orderSn
});
let
result
=
{
code
:
2
,
msg
:
'任务还在执行或未输入'
,
data
:
{}
}
;
let
result
=
'任务还在执行或未输入'
;
if
(
data
)
{
if
(
data
.
status
===
'success'
)
{
const
result
=
await
service
.
storage
.
read
(
orderSn
,
appKey
);
...
...
@@ -60,9 +60,9 @@ class OrderController extends Controller {
};
return
;
}
else
if
(
data
.
note
)
{
result
=
data
.
note
;
result
=
data
.
note
.
message
;
}
ctx
.
body
=
result
;
ctx
.
body
=
{
code
:
-
1
,
msg
:
result
}
;
return
;
}
}
catch
(
err
)
{
...
...
app/schedule/notifyUrl.js
View file @
ca3fa992
...
...
@@ -16,8 +16,7 @@ module.exports = {
charset
:
'utf-8'
,
timeout
:
[
'30s'
,
'30s'
],
dataType
:
'json'
,
contentType
:
'json'
,
gzip
:
true
contentType
:
'json'
});
ctx
.
logger
.
info
(
'notifyUrlCode'
,
JSON
.
stringify
(
ret
.
data
.
code
));
if
(
ret
.
data
.
code
===
0
)
{
...
...
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