by Robin at 20240628

This commit is contained in:
Leufolium 2024-06-28 18:02:13 +08:00
parent af2c2fc366
commit e919a70b1d
2 changed files with 15 additions and 2 deletions

View File

@ -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)
}

View File

@ -553,7 +553,7 @@ const (
CHSTypeWithdrawDiamondAuto = 40001 // 自动提现明细
CHSTypeWithdrawDiamondHvyogo = 40002 // 慧用工提现明细
CHSTypeWithdrawDiamondReversal = 40002 // 提现冲正明细
CHSTypeWithdrawDiamondReversal = 40003 // 提现冲正明细
)
type ConsumeHistory struct {