💊 fix: 修复bug

This commit is contained in:
wangsongsole 2023-06-29 17:39:59 +08:00
parent 112c07da8c
commit 733494439b
1 changed files with 3 additions and 0 deletions

View File

@ -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
}
}