Commit 1a10d74a authored by 徐光星's avatar 徐光星

feat: 调整活动日历接口返回值

parent 16edc776
...@@ -214,9 +214,12 @@ export default class EditorController extends Controller { ...@@ -214,9 +214,12 @@ export default class EditorController extends Controller {
attributes: ['id', 'uuid', 'pageName', 'tenantId', 'validStartTime', 'validEndTime'] attributes: ['id', 'uuid', 'pageName', 'tenantId', 'validStartTime', 'validEndTime']
}); });
const res = data.map(item => { const res = data.map(item => {
item.dataValues.url = `${api.h5Host}/activity/${item.uuid}?tenantId=${item.tenantId}&vccToken={token}&appChannel={appChannel}`; let dataValues = item.dataValues;
return item; dataValues.url = `${api.h5Host}/activity/${item.uuid}?tenantId=${item.tenantId}&vccToken={token}&appChannel={appChannel}`;
dataValues.uuid && delete dataValues.uuid;
dataValues.tenantId && delete dataValues.tenantId;
return item.dataValues;
}) })
ctx.body = ctx.helper.ok({ total, data: res }); ctx.body = ctx.helper.ok({ total, list: res });
} }
} }
\ No newline at end of file
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