diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 9234cfa..9b580fa 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -123,11 +123,11 @@ module.exports = { }); const [user, fund] = await Promise.all([User.findById(userId), Fund.findOne({ userId })]); 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({ code: 4,