detail
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user