@@ -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
|
||||
|
||||
Reference in New Issue
Block a user