From 733494439bb061c291aa7173f7da8e2182b443d7 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 29 Jun 2023 17:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8A=20fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/redPackets/rules.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/redPackets/rules.js b/src/components/redPackets/rules.js index 46a0dd10..05519f4f 100644 --- a/src/components/redPackets/rules.js +++ b/src/components/redPackets/rules.js @@ -160,6 +160,7 @@ export function additionalRules(params, computeMin, computeMax) { /* TODO: 2:微信 1:支付宝 */ if (model.channel === 2) { if (!rulesRandom(model, 0.1)) { + return false } } @@ -255,6 +256,8 @@ function rulesFixed(model, num) { if (model.denomination < num || model.denomination > 200 || !fP.test(model.denomination)) { Notify.error(`请输入${num} ~ 200的面额且保留2位小数`) return false + } else { + return true } }