From 554092a26647562d57e43121ffda0f3809c88ef3 Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sun, 8 Sep 2019 23:32:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BA=E5=AE=9A=E6=8F=90=E5=B8=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/fund/fund.controller.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index a9e31a7..bc39236 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -197,15 +197,15 @@ module.exports = { }; }), async getWithdrawCoinsList (req, res) { - const { userId } = res.locals.user; - const userFund = await Fund.findOne({userId}).exec(); - const asset = userFund.asset; - const list = []; - (asset['vic'] >= 1000) && list.push(withdrawCoinsList[0]); - (asset['usdt'] > 0 && (!userFund.lastWithdraw.usdt || (new Date() - new Date(userFund.lastWithdraw.usdt)) / (1000 * 3600 * 24 * 7) >= 1)) && list.push(withdrawCoinsList[1]); + // const { userId } = res.locals.user; + // const userFund = await Fund.findOne({userId}).exec(); + // const asset = userFund.asset; + // const list = []; + // (asset['vic'] >= 1000) && list.push(withdrawCoinsList[0]); + // (asset['usdt'] > 0 && (!userFund.lastWithdraw.usdt || (new Date() - new Date(userFund.lastWithdraw.usdt)) / (1000 * 3600 * 24 * 7) >= 1)) && list.push(withdrawCoinsList[1]); return res.json({ code: 0, - data: list + data: withdrawCoinsList }); }, // 查询资金,直接拉数据库,区块链的查询交给定时任务