fix: 更改矿场list的返回格式
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user