|
|
c431393266
|
fix: 折扣匹配改为精确匹配 quantity,不再取全局最小值
Build docker and publish / build (20.15.1) (push) Successful in 7m44s
将 getDiscount 和 isNewUserOnlyForQuantity 的匹配逻辑从
inputMonths >= discount.Quantity 改为 inputMonths == discount.Quantity,
买多少天就用多少天对应的折扣,避免错误配置导致折扣泄漏。
同时增加 discount 值合法性校验(>0 且 <100)。
Co-Authored-By: claude-flow <ruv@ruv.net>
|
2026-03-26 04:18:45 -07:00 |
|
|
|
fafb229295
|
feat: 为折扣计算函数 getDiscount 引入新用户判断逻辑以支持新用户专属折扣。
Build docker and publish / build (20.15.1) (push) Successful in 7m37s
|
2026-03-11 03:56:48 -07:00 |
|
EUForest
|
c1efb23354
|
update: Added support for floating-point calculations for discounts
|
2025-11-21 17:39:57 +08:00 |
|
Chang lue Tsen
|
34c09c4618
|
refactor: update import paths from ppanel-server to server
|
2025-04-25 15:09:31 +09:00 |
|
Chang lue Tsen
|
8addcc584b
|
init: 1.0.0
|
2025-04-25 12:08:29 +09:00 |
|