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
185fe7e4
Commit
185fe7e4
authored
Jun 08, 2020
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data
parent
c3df268d
Pipeline
#24606
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
task.js
app/controller/task.js
+2
-2
task.js
app/service/task.js
+2
-3
No files found.
app/controller/task.js
View file @
185fe7e4
...
@@ -67,8 +67,8 @@ class TaskController extends Controller {
...
@@ -67,8 +67,8 @@ class TaskController extends Controller {
if
(
key
.
length
<
16
)
{
if
(
key
.
length
<
16
)
{
while
(
key
.
length
<
16
)
key
+=
'0'
;
while
(
key
.
length
<
16
)
key
+=
'0'
;
}
}
key
=
key
.
substring
(
0
,
16
);
key
=
key
.
substring
(
0
,
16
);
ctx
.
request
.
body
=
ctx
.
helper
.
aesDecrypt
({
algorithm
:
'aes-128-ecb'
,
key
,
data
:
ctx
.
request
.
body
.
data
}
);
ctx
.
request
.
body
=
JSON
.
parse
(
ctx
.
helper
.
aesDecrypt
({
algorithm
:
'aes-128-ecb'
,
key
,
data
:
ctx
.
request
.
body
.
data
})
);
await
service
.
cache
.
set
({
await
service
.
cache
.
set
({
key
:
String
(
taskId
),
key
:
String
(
taskId
),
value
:
{
status
:
'login'
,
note
:
{
message
:
'login'
}
},
value
:
{
status
:
'login'
,
note
:
{
message
:
'login'
}
},
...
...
app/service/task.js
View file @
185fe7e4
...
@@ -67,12 +67,11 @@ class TaskService extends Service {
...
@@ -67,12 +67,11 @@ class TaskService extends Service {
const
result
=
await
this
.
_request
(
url
,
{
const
result
=
await
this
.
_request
(
url
,
{
method
:
'post'
,
method
:
'post'
,
data
:
{
data
:
{
taskId
,
taskId
type
,
},
},
contentType
:
'json'
,
contentType
:
'json'
,
});
});
ctx
.
logger
.
info
(
`【Task】fetchCapture
${
fetchCodeU
rl
}
params`
,
JSON
.
stringify
({
ctx
.
logger
.
info
(
`【Task】fetchCapture
${
u
rl
}
params`
,
JSON
.
stringify
({
taskId
,
taskId
,
type
,
type
,
}),
JSON
.
stringify
(
result
.
data
));
}),
JSON
.
stringify
(
result
.
data
));
...
...
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