diff --git a/src/components/redPackets/rules.js b/src/components/redPackets/rules.js index 0398cfcc..c892dbef 100644 --- a/src/components/redPackets/rules.js +++ b/src/components/redPackets/rules.js @@ -219,7 +219,7 @@ function rulesRandom(model, num) { /* 固定额度微信/支付宝验证方法 */ function rulesFixed(model, num) { - if ((model.denomination < num || model.denomination > 200) && !fP.test(model.denomination)) { + if (model.denomination < num || model.denomination > 200 || !fP.test(model.denomination)) { Notify.error(`请输入${num} ~ 200的面额且保留2位小数`) return false }