From fc700e6fc4c8dc7f3289d9b3ef10dfc9a81a70ce Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 26 Jun 2023 16:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8A=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E5=A4=A9=E9=A2=84=E7=AE=97=E5=8F=91=E6=94=BE=E4=B8=8A?= =?UTF-8?q?=E9=99=90=E9=9C=80=E8=A6=81=E5=B0=8F=E4=BA=8E=E6=88=96=E7=AD=89?= =?UTF-8?q?=E4=BA=8E=E6=80=BB=E9=A2=84=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/redPackets/rules.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/redPackets/rules.js b/src/components/redPackets/rules.js index 469b2611..747a2928 100644 --- a/src/components/redPackets/rules.js +++ b/src/components/redPackets/rules.js @@ -118,6 +118,11 @@ export function additionalRules({ model, computeMax }) { return false } + if (model.day_budget > model.all_budget) { + Notify.error("单天预算发放上限需要小于或等于总预算") + return false + } + if (model.receive_every === 1 && model.receive_num > 10) { Notify.error("每日红包最高上限为10个") return false