Commit 185fe7e4 authored by 姜登's avatar 姜登

data

parent c3df268d
Pipeline #24606 passed with stage
in 4 seconds
......@@ -67,8 +67,8 @@ class TaskController extends Controller {
if (key.length < 16) {
while (key.length < 16) key += '0';
}
key = key.substring(0,16);
ctx.request.body = ctx.helper.aesDecrypt({ algorithm: 'aes-128-ecb', key, data: ctx.request.body.data });
key = key.substring(0, 16);
ctx.request.body = JSON.parse(ctx.helper.aesDecrypt({ algorithm: 'aes-128-ecb', key, data: ctx.request.body.data }));
await service.cache.set({
key: String(taskId),
value: { status: 'login', note: { message: 'login' } },
......
......@@ -67,12 +67,11 @@ class TaskService extends Service {
const result = await this._request(url, {
method: 'post',
data: {
taskId,
type,
taskId
},
contentType: 'json',
});
ctx.logger.info(`【Task】fetchCapture ${fetchCodeUrl} params`, JSON.stringify({
ctx.logger.info(`【Task】fetchCapture ${url} params`, JSON.stringify({
taskId,
type,
}), JSON.stringify(result.data));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment