From e919a70b1dc16733867b200b9dace9948f855014 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Fri, 28 Jun 2024 18:02:13 +0800 Subject: [PATCH] by Robin at 20240628 --- app/mix/service/vasservice.go | 15 ++++++++++++++- dbstruct/vas_mysql.go | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 064bc05b..84885121 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -3,7 +3,6 @@ package service import ( "encoding/base64" "fmt" - goproto "google.golang.org/protobuf/proto" "service/api/base" "service/api/errcode" "service/api/errs" @@ -20,6 +19,8 @@ import ( "strconv" "strings" + goproto "google.golang.org/protobuf/proto" + "github.com/gin-gonic/gin" ) @@ -472,6 +473,18 @@ func (s *Service) chListWithdraw(ctx *gin.Context, chList []*dbstruct.ConsumeHis if chDB.GetChange() < 0 { item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) } + case dbstruct.CHSTypeWithdrawDiamondHvyogo: + item.Desc = "钻石提现" + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) + if chDB.GetChange() < 0 { + item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + } + case dbstruct.CHSTypeWithdrawDiamondReversal: + item.Desc = "钻石返还" + item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange()) + if chDB.GetChange() < 0 { + item.Change = fmt.Sprintf("%d钻石", chDB.GetChange()) + } } list = append(list, item) } diff --git a/dbstruct/vas_mysql.go b/dbstruct/vas_mysql.go index 00b459a0..a3132d26 100644 --- a/dbstruct/vas_mysql.go +++ b/dbstruct/vas_mysql.go @@ -553,7 +553,7 @@ const ( CHSTypeWithdrawDiamondAuto = 40001 // 自动提现明细 CHSTypeWithdrawDiamondHvyogo = 40002 // 慧用工提现明细 - CHSTypeWithdrawDiamondReversal = 40002 // 提现冲正明细 + CHSTypeWithdrawDiamondReversal = 40003 // 提现冲正明细 ) type ConsumeHistory struct {