This commit is contained in:
chaosBreaking
2019-09-30 13:43:36 +08:00
parent 68b56e26f1
commit 155f62988a

View File

@@ -56,6 +56,13 @@ module.exports = {
type: { $in: [1, 2, 3] } type: { $in: [1, 2, 3] }
}, actionFilter).skip((+pageIndex - 1) * +pageSize).limit(+pageSize) }, actionFilter).skip((+pageIndex - 1) * +pageSize).limit(+pageSize)
.exec().then(data => { .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({ return res.json({
code: 0, code: 0,
data data