Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
taxh5
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
taxh5
Commits
1bdc63c5
Commit
1bdc63c5
authored
Apr 10, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不分渠道
parent
54036187
Pipeline
#5831
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
task.js
app/controller/task.js
+2
-4
No files found.
app/controller/task.js
View file @
1bdc63c5
...
...
@@ -54,10 +54,8 @@ class TaskController extends Controller {
const
{
ctx
,
service
}
=
this
;
ctx
.
validate
(
this
.
createRule
);
const
{
scriptId
,
orderId
,
userId
}
=
ctx
.
request
.
body
;
const
channelType
=
await
ctx
.
app
.
redis
.
get
(
scriptId
);
ctx
.
app
.
redis
.
set
(
scriptId
,
channelType
,
"EX"
,
3600
);
const
taskId
=
await
service
.
task
.
create
({
scriptId
,
channelType
});
await
service
.
order
.
update
({
orderId
,
cityId
:
scriptId
,
taskId
,
userId
,
text1
:
channelType
});
const
taskId
=
await
service
.
task
.
create
({
scriptId
});
await
service
.
order
.
update
({
orderId
,
cityId
:
scriptId
,
taskId
,
userId
});
await
service
.
cache
.
set
({
key
:
taskId
,
value
:
{
status
:
'init'
,
note
:
{
message
:
'init'
}},
...
...
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