修复套餐价格问题

This commit is contained in:
2026-04-16 17:45:55 +08:00
parent 9b3546b45f
commit fd475d3e63
3 changed files with 4 additions and 7 deletions

View File

@@ -172,7 +172,7 @@ func (s *resourceService) CalcPrice(skuCode string, count int32, user *m.User, c
}
uDiscountRate := uDiscount.Rate()
if uDiscountRate.Cmp(discountRate) > 0 {
if uDiscountRate.Cmp(discountRate) < 0 {
discountRate = uDiscountRate
discount = uDiscount
}