This commit is contained in:
桀尼龟 2025-07-16 18:18:24 +08:00
parent b149446170
commit 145486aec2

View File

@ -505,13 +505,13 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
for _, sub := range record.BundleOrderValueAdd { for _, sub := range record.BundleOrderValueAdd {
orderAddNo := sub.OrderNo orderAddNo := sub.OrderNo
amount := float32(sub.Amount) amount := float32(sub.Amount)
if existing, ok := addMap[orderAddNo]; ok {
existing.Amount += amount
} else {
var videoNum int32 var videoNum int32
if sub.ServiceType == 1 { if sub.ServiceType == 1 {
videoNum = sub.Num videoNum = sub.Num
} }
if existing, ok := addMap[orderAddNo]; ok {
existing.Amount += amount
} else {
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{ addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
OrderAddNo: orderAddNo, OrderAddNo: orderAddNo,
Amount: amount, Amount: amount,