diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 2e973541..64721dbd 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 {