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 }); }, // 查询资金,直接拉数据库,区块链的查询交给定时任务