Merge branch 'dev-lzh-0905' into dev

This commit is contained in:
lzh 2025-10-21 10:47:16 +08:00
commit 39d899288a

View File

@ -446,8 +446,16 @@ func BundleBalanceExport(req *bundle.BundleBalanceExportReq) (*bundle.BundleBala
item.TotalPayAmount = prefixItem.TotalPayAmount
item.Currency = "USD"
item.Fee = prefixItem.Fee
item.BundleVideoUnitPrice = float32(item.BundleAmount / float32(v.BundleVideoNumber))
item.IncreaseVideoUnitPrice = float32(item.IncreaseAmount / float32(v.IncreaseVideoNumber))
if v.BundleVideoNumber == 0 {
item.BundleVideoUnitPrice = 0
} else {
item.BundleVideoUnitPrice = float32(item.BundleAmount / float32(v.BundleVideoNumber))
}
if v.IncreaseVideoNumber == 0 {
item.IncreaseVideoUnitPrice = 0
} else {
item.IncreaseVideoUnitPrice = float32(item.IncreaseAmount / float32(v.IncreaseVideoNumber))
}
items = append(items, item)
}
return &bundle.BundleBalanceExportResp{Total: int64(len(items)), Data: items}, nil