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
3dab66c1
Commit
3dab66c1
authored
Oct 31, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjjh5
parent
c61cadfe
Pipeline
#15669
passed with stage
in 4 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
task.js
app/controller/task.js
+14
-0
No files found.
app/controller/task.js
View file @
3dab66c1
/*
* @Descripttion:
* @version:
* @Author: jd
* @Date: 2019-02-25 18:59:53
* @LastEditors: jd
* @LastEditTime: 2019-10-31 19:56:03
*/
'use strict'
;
const
Controller
=
require
(
'egg'
).
Controller
;
...
...
@@ -144,6 +152,10 @@ class TaskController extends Controller {
delete
insertData
.
code
;
await
service
.
storage
.
write
(
insertData
);
await
service
.
order
.
oldgjjStatus
({
orderId
,
status
:
'success'
});
await
service
.
cache
.
set
({
key
:
taskId
,
value
:
taskNote
,
});
await
service
.
partner
.
notice
(
order
);
}
catch
(
err
)
{
ctx
.
logger
.
error
(
'handleCallback'
,
JSON
.
stringify
(
err
),
JSON
.
stringify
(
result
));
...
...
@@ -162,11 +174,13 @@ class TaskController extends Controller {
ctx
.
logger
.
warn
(
'handleCallback'
,
JSON
.
stringify
(
result
));
break
;
}
if
(
result
.
code
!==
0
)
{
await
service
.
cache
.
set
({
key
:
taskId
,
value
:
taskNote
,
});
}
}
async
fetchCityConfig
()
{
const
{
ctx
,
service
}
=
this
;
...
...
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