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 = {
async getFundDetail (req, res) {
const { userId } = res.locals.user;
return Fund.findOne({ userId }, 'asset').then(fund => {
return Fund.findOne({ userId }, 'vicFundSum').then(fund => {
return res.json({
code: 0,
msg: 'success',
data: { vic: fund.vicFundSum, usdt: 0 }
data: { vic: fund.vicFundSum || 0, usdt: 0 }
});
}).catch(err => {
mylog.error("[getFundDetail]", err);