From 601871317959735a9a6a3efddec3e887b0a7538c Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sat, 26 Oct 2019 18:21:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/fund/fund.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 167d6dd..6ec8da7 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -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);