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 {
orderAddNo := sub.OrderNo
amount := float32(sub.Amount)
var videoNum int32
if sub.ServiceType == 1 {
videoNum = sub.Num
}
if existing, ok := addMap[orderAddNo]; ok {
existing.Amount += amount
} else {
var videoNum int32
if sub.ServiceType == 1 {
videoNum = sub.Num
}
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
OrderAddNo: orderAddNo,
Amount: amount,