fix: usdt提现规则

This commit is contained in:
chaosBreaking
2019-09-08 21:08:25 +08:00
parent 89de3ac51c
commit 557f36305f

View File

@@ -14,10 +14,6 @@ const { calRevenueLastday, getActiveFund } = require('./fund.handler');
const { getDate } = require('../../utils/date'); const { getDate } = require('../../utils/date');
const depositCoinsList = [{ const depositCoinsList = [{
id: 'usdtBTC',
label: 'usdtBTC',
rate: '1'
}, {
id: 'usdtETH', id: 'usdtETH',
label: 'usdtETH', label: 'usdtETH',
rate: '1' rate: '1'
@@ -196,7 +192,7 @@ module.exports = {
const asset = userFund.asset; const asset = userFund.asset;
const list = []; const list = [];
(asset['vic'] >= 1000) && list.push(withdrawCoinsList[0]); (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({ return res.json({
code: 0, code: 0,
data: list data: list