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 { ...@@ -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' } },
......
...@@ -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 ${fetchCodeUrl} params`, JSON.stringify({ ctx.logger.info(`【Task】fetchCapture ${url} params`, JSON.stringify({
taskId, taskId,
type, type,
}), JSON.stringify(result.data)); }), 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