fix: 显示

This commit is contained in:
chaosBreaking
2019-10-26 18:21:00 +08:00
parent e144f7b8de
commit 6018713179

View File

@@ -32,11 +32,11 @@ const withdrawCoinsList = [{
module.exports = { module.exports = {
async getFundDetail (req, res) { async getFundDetail (req, res) {
const { userId } = res.locals.user; const { userId } = res.locals.user;
return Fund.findOne({ userId }, 'asset').then(fund => { return Fund.findOne({ userId }, 'vicFundSum').then(fund => {
return res.json({ return res.json({
code: 0, code: 0,
msg: 'success', msg: 'success',
data: { vic: fund.vicFundSum, usdt: 0 } data: { vic: fund.vicFundSum || 0, usdt: 0 }
}); });
}).catch(err => { }).catch(err => {
mylog.error("[getFundDetail]", err); mylog.error("[getFundDetail]", err);