shanshanzhong 4a2501a3d1
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m55s
fix: 折扣匹配改为精确匹配 quantity,不再取全局最小值
将 getDiscount 和 isNewUserOnlyForQuantity 的匹配逻辑从
inputMonths >= discount.Quantity 改为 inputMonths == discount.Quantity,
买多少天就用多少天对应的折扣,避免错误配置导致折扣泄漏。
同时增加 discount 值合法性校验(>0 且 <100)。

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-26 01:28:50 -07:00
..
2026-03-17 07:12:42 -07:00
2026-03-08 23:22:38 +08:00
2026-03-08 23:22:38 +08:00
2026-03-03 09:32:22 -08:00