fix
This commit is contained in:
parent
c887c8238b
commit
bbc808e27a
|
@ -96,6 +96,7 @@ type WithdrawPageReq struct {
|
|||
}
|
||||
|
||||
type WithdrawPageData struct {
|
||||
Diamonds int64 `json:"diamonds"`
|
||||
WithdrawDiamonds int64 `json:"withdraw_diamonds"` // 可提现的钻石
|
||||
Day7TotalDiamonds int64 `json:"day7_total_diamonds"` // 7天前0~24点总收益
|
||||
Day7TotalWithdrawDiamonds int64 `json:"day7_total_withdraw_diamonds"` // 7天前0~24点已结算总收益
|
||||
|
|
|
@ -521,6 +521,7 @@ func (s *Service) WithdrawPage(ctx *gin.Context, req *vasproto.WithdrawPageReq)
|
|||
data = new(vasproto.WithdrawPageData)
|
||||
wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, req.Mid)
|
||||
if wallet != nil {
|
||||
data.Diamonds = wallet.GetDiamonds()
|
||||
data.WithdrawDiamonds = wallet.GetWithdrawDiamonds()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue