fix: 更改矿场list的返回格式

This commit is contained in:
chaosBreaking
2019-09-07 15:15:55 +08:00
parent aac443a67c
commit cc4e4eb7f7

View File

@@ -171,10 +171,10 @@ module.exports = {
}, },
async getFundList (req, res) { async getFundList (req, res) {
const { userId } = res.locals.user; const { userId } = res.locals.user;
return Fund.findOne({userId}, 'fundList').then(list => { return Fund.findOne({userId}, 'fundList').then(fund => {
return res.json({ return res.json({
code: 0, code: 0,
data: list data: fund.fundList
}); });
}).catch(err => { }).catch(err => {
mylog.error(err); mylog.error(err);