Merge branch 'feat-IRONFANS-70' into test

This commit is contained in:
lwl0608 2024-04-25 19:20:07 +08:00
commit e4d97122a1
1 changed files with 12 additions and 1 deletions

View File

@ -375,6 +375,9 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
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())
if chDB.GetChange() == 0 {
item.Change = fmt.Sprintf("-%d钻石", chDB.GetChange())
}
case dbstruct.CHSTypeIncomeRefundThirdPartner: case dbstruct.CHSTypeIncomeRefundThirdPartner:
item.Desc = "代运营空间退款" + getTypeIdDesc(chDB.GetTypeId()) item.Desc = "代运营空间退款" + getTypeIdDesc(chDB.GetTypeId())
switch chDB.GetTypeId() { switch chDB.GetTypeId() {
@ -386,6 +389,9 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
item.Desc = "代运营(空间超粉退款)" item.Desc = "代运营(空间超粉退款)"
} }
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
if chDB.GetChange() == 0 {
item.Change = fmt.Sprintf("-%d钻石", chDB.GetChange())
}
case dbstruct.CHSTypeIncomeRefundCollaborator: case dbstruct.CHSTypeIncomeRefundCollaborator:
item.Desc = "合伙人空间退款" + getTypeIdDesc(chDB.GetTypeId()) item.Desc = "合伙人空间退款" + getTypeIdDesc(chDB.GetTypeId())
switch chDB.GetTypeId() { switch chDB.GetTypeId() {
@ -397,6 +403,9 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
item.Desc = "合伙人(空间超粉退款)" item.Desc = "合伙人(空间超粉退款)"
} }
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
if chDB.GetChange() == 0 {
item.Change = fmt.Sprintf("-%d钻石", chDB.GetChange())
}
case dbstruct.CHSTypeIncomeRefundZoneStreamer: case dbstruct.CHSTypeIncomeRefundZoneStreamer:
item.Desc = "空间退款" + getTypeIdDesc(chDB.GetTypeId()) item.Desc = "空间退款" + getTypeIdDesc(chDB.GetTypeId())
switch chDB.GetTypeId() { switch chDB.GetTypeId() {
@ -408,7 +417,9 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
item.Desc = "空间超粉(用户退款)" item.Desc = "空间超粉(用户退款)"
} }
item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) item.Change = fmt.Sprintf("%d钻石", chDB.GetChange())
if chDB.GetChange() == 0 {
item.Change = fmt.Sprintf("-%d钻石", chDB.GetChange())
}
} }
list = append(list, item) list = append(list, item)
} }