From df8a430d63ded62f0368ea8cbd45a37ca0375464 Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sun, 8 Sep 2019 21:32:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B5=84=E4=BA=A7=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/fund/fund.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index bbe3798..bcc6a39 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -35,7 +35,7 @@ module.exports = { return res.json({ code: 0, msg: 'success', - data: fund + data: fund && fund.asset }); }).catch(err => { mylog.error("[getFundDetail]", err); @@ -120,8 +120,8 @@ module.exports = { msg: '资金不足', error: 'insufficient fund' }); - const action = createAction(3, { userId, amount, remain: fund.asset, op: 0, detail: { targetAddress } }); - const ticket = createTicket('withdraw', { userId, amount: +amount, action, targetAddress }); + const action = createAction(3, { userId, amount, remain: fund.asset, op: 0, detail: { targetAddress, coinId } }); + const ticket = createTicket('withdraw', { userId, amount: +amount, action, targetAddress, coinId }); try { await fund.decrease(coinId, cost); } catch (error) {