fix
This commit is contained in:
parent
c355c74390
commit
49c31aa9ce
|
@ -295,16 +295,16 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
|||
item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
|
||||
case dbstruct.CHSTypeChargeZoneMoment:
|
||||
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:
|
||||
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:
|
||||
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:
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue