From 2ea002a93f6bdee87944e022f7b42dc91a22e7bd Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Tue, 15 Oct 2019 11:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E6=9D=A1=E4=BB=B6?= 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, 3 insertions(+), 3 deletions(-) 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,