diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 687f475..4dd0be2 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -56,6 +56,13 @@ module.exports = { type: { $in: [1, 2, 3] } }, actionFilter).skip((+pageIndex - 1) * +pageSize).limit(+pageSize) .exec().then(data => { + for (let i = 0, len = data.length; i < len; ++i) { + if (typeof data.detail === 'undefined' || data.detail) { + const target = data.action.detail && data.action.detail.targetAddress ? data.action.detail.targetAddress.slice(0, 5) + '*****' + data.action.detail.targetAddress.slice(-4) : ''; + const detail = +data.action.type === 3 ? `提取${data.action && data.action.detail && data.action.detail.coinId || 'vic'}到${target}` : ''; + data.action.detail = detail; + } + } return res.json({ code: 0, data