This commit is contained in:
桀尼龟 2025-07-16 17:53:27 +08:00
commit 6cf7804b39
3 changed files with 1272 additions and 1257 deletions

View File

@ -505,7 +505,10 @@ 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 {
@ -520,6 +523,7 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
Snapshot: sub.Snapshot,
CheckoutSessionId: sub.CheckoutSessionId,
CustomerID: sub.CustomerID,
VideoNum: videoNum,
}
}
}

View File

@ -221,6 +221,7 @@ message OrderAddBundleRecordInfo{
string snapshot = 10;
string CheckoutSessionId = 11;
string CustomerID = 12;
int32 videoNum = 13;
}
message PackagePriceAndTimeResponse{
float price = 1 [json_name = "price"];

File diff suppressed because it is too large Load Diff