fix
This commit is contained in:
parent
4da4ca70d1
commit
c355c74390
|
@ -292,19 +292,19 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
||||||
item.Change = changeMark + fmt.Sprintf("%d金币", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d金币", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeChargeRefundContactWechat:
|
case dbstruct.CHSTypeChargeRefundContactWechat:
|
||||||
item.Desc = "微信联系方式退款"
|
item.Desc = "微信联系方式退款"
|
||||||
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)
|
||||||
|
@ -338,16 +338,16 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeIncomeThirdPartner:
|
case dbstruct.CHSTypeIncomeThirdPartner:
|
||||||
item.Desc = "代运营收益" + getTypeIdDesc(chDB.GetTypeId())
|
item.Desc = "代运营收益" + getTypeIdDesc(chDB.GetTypeId())
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeIncomeCollaborator:
|
case dbstruct.CHSTypeIncomeCollaborator:
|
||||||
item.Desc = "协作收益" + getTypeIdDesc(chDB.GetTypeId())
|
item.Desc = "协作收益" + getTypeIdDesc(chDB.GetTypeId())
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeIncomeZone:
|
case dbstruct.CHSTypeIncomeZone:
|
||||||
item.Desc = "空间收益" + getTypeIdDesc(chDB.GetTypeId())
|
item.Desc = "空间收益" + getTypeIdDesc(chDB.GetTypeId())
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeIncomeMembership:
|
case dbstruct.CHSTypeIncomeMembership:
|
||||||
item.Desc = "永久会员收益" + getTypeIdDesc(chDB.GetTypeId())
|
item.Desc = "永久会员收益" + getTypeIdDesc(chDB.GetTypeId())
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
case dbstruct.CHSTypeIncomeRefundZoneAdmission:
|
case dbstruct.CHSTypeIncomeRefundZoneAdmission:
|
||||||
item.Desc = "空会员退款" + getTypeIdDesc(chDB.GetTypeId())
|
item.Desc = "空会员退款" + getTypeIdDesc(chDB.GetTypeId())
|
||||||
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
|
|
Loading…
Reference in New Issue