fix: usdt提现规则
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user