This commit is contained in:
lwl0608 2024-04-24 21:42:31 +08:00
parent c355c74390
commit 49c31aa9ce
1 changed files with 4 additions and 4 deletions

View File

@ -295,16 +295,16 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
item.Change = fmt.Sprintf("%d金币", chDB.GetChange()) item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
case dbstruct.CHSTypeChargeZoneMoment: case dbstruct.CHSTypeChargeZoneMoment:
item.Desc = "解锁动态" item.Desc = "解锁动态"
item.Change = fmt.Sprintf("-%2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0) item.Change = fmt.Sprintf("-%.2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0)
case dbstruct.CHSTypeChargeZoneAdmission: case dbstruct.CHSTypeChargeZoneAdmission:
item.Desc = "解锁空间会员" item.Desc = "解锁空间会员"
item.Change = fmt.Sprintf("-%2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0) item.Change = fmt.Sprintf("-%.2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0)
case dbstruct.CHSTypeChargeZoneSuperfanship: case dbstruct.CHSTypeChargeZoneSuperfanship:
item.Desc = "解锁空间超粉" item.Desc = "解锁空间超粉"
item.Change = fmt.Sprintf("-%2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0) item.Change = fmt.Sprintf("-%.2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0)
case dbstruct.CHSTypeChargeZoneRefundAdmission: case dbstruct.CHSTypeChargeZoneRefundAdmission:
item.Desc = "空间会员退款" item.Desc = "空间会员退款"
item.Change = fmt.Sprintf("+%2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0) item.Change = fmt.Sprintf("+%.2f元", float64(util.AbsInt64(chDB.GetChange()))/100.0)
} }
list = append(list, item) list = append(list, item)