修复(#85): 按数量匹配订阅促销价

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-05-27 00:36:24 -07:00
parent 48e507783e
commit ae64cc635d
15 changed files with 209 additions and 41 deletions
@@ -77,7 +77,13 @@ func (l *QuerySubscribeListLogic) QuerySubscribeList(req *types.QuerySubscribeLi
return nil, err
}
for i := range list {
list[i].Promo = promos[list[i].Id]
subscribePromos := promos[list[i].Id]
for j := range list[i].Discount {
if subscribePromos == nil {
continue
}
list[i].Discount[j].Promo = subscribePromos[list[i].Discount[j].Quantity]
}
}
resp.List = list