From 557f36305fed871bb1fa7d38a824c60245e7a9d5 Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sun, 8 Sep 2019 21:08:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20usdt=E6=8F=90=E7=8E=B0=E8=A7=84=E5=88=99?= 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, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 0b88e8d..26ac8fb 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -14,10 +14,6 @@ const { calRevenueLastday, getActiveFund } = require('./fund.handler'); const { getDate } = require('../../utils/date'); const depositCoinsList = [{ - id: 'usdtBTC', - label: 'usdtBTC', - rate: '1' -}, { id: 'usdtETH', label: 'usdtETH', rate: '1' @@ -196,7 +192,7 @@ module.exports = { const asset = userFund.asset; const list = []; (asset['vic'] >= 1000) && list.push(withdrawCoinsList[0]); - (!userFund.lastWithdraw.usdt || (new Date() - new Date(userFund.lastWithdraw.usdt)) / (1000 * 3600 * 24 * 7) >= 1) && list.push(withdrawCoinsList[1]); + (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