Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
forgot_server
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
forgot_server
Commits
072ad1db
Commit
072ad1db
authored
Dec 05, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
cf8b2060
Pipeline
#17851
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
task.js
app/controller/task.js
+3
-3
task.js
app/service/task.js
+3
-3
No files found.
app/controller/task.js
View file @
072ad1db
...
@@ -102,12 +102,12 @@ class TaskController extends Controller {
...
@@ -102,12 +102,12 @@ class TaskController extends Controller {
async
fetchCapture
()
{
async
fetchCapture
()
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
,
service
}
=
this
;
ctx
.
validate
(
this
.
fetchCaptureRule
);
ctx
.
validate
(
this
.
fetchCaptureRule
);
const
{
taskId
,
type
:
taskType
}
=
ctx
.
params
;
const
{
taskId
,
type
}
=
ctx
.
params
;
const
{
type
}
=
ctx
.
request
.
body
;
const
{
type
:
taskType
}
=
ctx
.
request
.
body
;
const
result
=
await
service
.
task
.
fetchCapture
({
const
result
=
await
service
.
task
.
fetchCapture
({
taskId
,
taskId
,
taskType
,
type
,
type
,
taskType
,
});
});
ctx
.
success
(
result
);
ctx
.
success
(
result
);
}
}
...
...
app/service/task.js
View file @
072ad1db
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: jd
* @Author: jd
* @Date: 2019-12-02 17:25:35
* @Date: 2019-12-02 17:25:35
* @LastEditors: jd
* @LastEditors: jd
* @LastEditTime: 2019-12-05 11:
19:39
* @LastEditTime: 2019-12-05 11:
29:10
*/
*/
'use strict'
;
'use strict'
;
...
@@ -74,14 +74,14 @@ class TaskService extends Service {
...
@@ -74,14 +74,14 @@ class TaskService extends Service {
return
result
.
data
.
data
.
taskId
;
return
result
.
data
.
data
.
taskId
;
}
}
async
fetchCapture
({
taskId
,
t
askType
,
t
ype
})
{
async
fetchCapture
({
taskId
,
t
ype
,
taskT
ype
})
{
const
{
taskAPI
,
ctx
}
=
this
;
const
{
taskAPI
,
ctx
}
=
this
;
const
{
fetchCodeUrl
}
=
taskAPI
;
const
{
fetchCodeUrl
}
=
taskAPI
;
const
result
=
await
this
.
_request
(
this
.
checkType
(
type
)
+
fetchCodeUrl
,
{
const
result
=
await
this
.
_request
(
this
.
checkType
(
type
)
+
fetchCodeUrl
,
{
method
:
'post'
,
method
:
'post'
,
data
:
{
data
:
{
taskId
,
taskId
,
taskType
,
t
ype
:
t
askType
,
},
},
contentType
:
'json'
,
contentType
:
'json'
,
});
});
...
...
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