提现条件

This commit is contained in:
chaosBreaking
2019-10-15 11:20:24 +08:00
parent 0be5babf28
commit 2ea002a93f

View File

@@ -123,11 +123,11 @@ module.exports = {
}); });
const [user, fund] = await Promise.all([User.findById(userId), Fund.findOne({ userId })]); const [user, fund] = await Promise.all([User.findById(userId), Fund.findOne({ userId })]);
if ( if (
(coinId === 'vic' && +amount < 1000) (coinId === 'vic' && +amount < 30)
|| ||
+amount > (fund && +fund.fundSum || 10000) +fund.fundSum < 500
|| ||
+fund.fundSum === 0 +user.verifyLevel < 1
) { ) {
return res.json({ return res.json({
code: 4, code: 4,