From c355c743908f5984aeb71d432bd394133d528f2b Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Wed, 24 Apr 2024 21:39:47 +0800 Subject: [PATCH] fix --- app/mix/service/vasservice.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 78295f4d..982134b3 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -292,19 +292,19 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto item.Change = changeMark + fmt.Sprintf("%d金币", chDB.GetChange()) case dbstruct.CHSTypeChargeRefundContactWechat: item.Desc = "微信联系方式退款" - item.Change = fmt.Sprintf("消费%d金币", chDB.GetChange()) + 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) @@ -338,16 +338,16 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) case dbstruct.CHSTypeIncomeThirdPartner: item.Desc = "代运营收益" + getTypeIdDesc(chDB.GetTypeId()) - item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) case dbstruct.CHSTypeIncomeCollaborator: item.Desc = "协作收益" + getTypeIdDesc(chDB.GetTypeId()) - item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) case dbstruct.CHSTypeIncomeZone: item.Desc = "空间收益" + getTypeIdDesc(chDB.GetTypeId()) - item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) case dbstruct.CHSTypeIncomeMembership: item.Desc = "永久会员收益" + getTypeIdDesc(chDB.GetTypeId()) - item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) case dbstruct.CHSTypeIncomeRefundZoneAdmission: item.Desc = "空会员退款" + getTypeIdDesc(chDB.GetTypeId()) item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())