修复: green_discount折扣率(折数)语义——前端/后端计算ecoAmt改为×折数/10,管理面板max=10默认值10,校验与文案全改

This commit is contained in:
ypsdf1
2026-07-08 00:18:47 +08:00
parent ac79628076
commit 28c7aa119e
5 changed files with 21 additions and 18 deletions
+2 -2
View File
@@ -2819,7 +2819,7 @@ function getShopConfigSync() {
};
success([
'packmoney' => (float)$read('packmoney', '5'),
'green_discount' => (float)$read('green_discount', '2')
'green_discount' => (float)$read('green_discount', '10')
]);
}
@@ -2839,7 +2839,7 @@ function setShopConfigSync() {
if ($v < 0 || $v > 999) error('打包费需介于 0 ~ 999');
} else {
$v = (float)$value;
if ($v < 0 || $v > 9.99) error('环保单减免需介于 0 ~ 9.99');
if ($v < 0 || $v > 10) error('环保单折扣(折数)需介于 0 ~ 10');
}
$db = getDB();