Merge branch 'dev-lzh-0905' into dev
This commit is contained in:
commit
39d899288a
@ -446,8 +446,16 @@ func BundleBalanceExport(req *bundle.BundleBalanceExportReq) (*bundle.BundleBala
|
|||||||
item.TotalPayAmount = prefixItem.TotalPayAmount
|
item.TotalPayAmount = prefixItem.TotalPayAmount
|
||||||
item.Currency = "USD"
|
item.Currency = "USD"
|
||||||
item.Fee = prefixItem.Fee
|
item.Fee = prefixItem.Fee
|
||||||
item.BundleVideoUnitPrice = float32(item.BundleAmount / float32(v.BundleVideoNumber))
|
if v.BundleVideoNumber == 0 {
|
||||||
item.IncreaseVideoUnitPrice = float32(item.IncreaseAmount / float32(v.IncreaseVideoNumber))
|
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)
|
items = append(items, item)
|
||||||
}
|
}
|
||||||
return &bundle.BundleBalanceExportResp{Total: int64(len(items)), Data: items}, nil
|
return &bundle.BundleBalanceExportResp{Total: int64(len(items)), Data: items}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user