This commit is contained in:
lwl0608 2024-06-28 14:33:01 +08:00
parent c887c8238b
commit bbc808e27a
2 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,7 @@ type WithdrawPageReq struct {
} }
type WithdrawPageData struct { type WithdrawPageData struct {
Diamonds int64 `json:"diamonds"`
WithdrawDiamonds int64 `json:"withdraw_diamonds"` // 可提现的钻石 WithdrawDiamonds int64 `json:"withdraw_diamonds"` // 可提现的钻石
Day7TotalDiamonds int64 `json:"day7_total_diamonds"` // 7天前024点总收益 Day7TotalDiamonds int64 `json:"day7_total_diamonds"` // 7天前024点总收益
Day7TotalWithdrawDiamonds int64 `json:"day7_total_withdraw_diamonds"` // 7天前024点已结算总收益 Day7TotalWithdrawDiamonds int64 `json:"day7_total_withdraw_diamonds"` // 7天前024点已结算总收益

View File

@ -521,6 +521,7 @@ func (s *Service) WithdrawPage(ctx *gin.Context, req *vasproto.WithdrawPageReq)
data = new(vasproto.WithdrawPageData) data = new(vasproto.WithdrawPageData)
wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, req.Mid) wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, req.Mid)
if wallet != nil { if wallet != nil {
data.Diamonds = wallet.GetDiamonds()
data.WithdrawDiamonds = wallet.GetWithdrawDiamonds() data.WithdrawDiamonds = wallet.GetWithdrawDiamonds()
} }