This commit is contained in:
lwl0608 2024-04-25 14:07:46 +08:00
parent 25410368f5
commit f3533490f8
3 changed files with 9 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func (vo *ApiListVO) CopyWallet(wallet *dbstruct.Wallet) *ApiListVO {
return vo return vo
} }
vo.GoldNum = wallet.Coins vo.GoldNum = wallet.Coins
vo.DiamondNum = wallet.WithdrawDiamonds vo.DiamondNum = wallet.Diamonds
vo.WithdrawDiamondNum = wallet.WithdrawDiamonds vo.WithdrawDiamondNum = wallet.WithdrawDiamonds
return vo return vo
} }

View File

@ -1515,6 +1515,13 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
return return
} }
// 扣钻石
err = v.store.DecDiamonds(ctx, tx, mid, diamonds)
if err != nil {
logger.Error("DecDiamonds fail, mid: %, err: %v", mid, err)
return
}
// 添加提现订单 // 添加提现订单
wOrder = &dbstruct.WithdrawOrder{ wOrder = &dbstruct.WithdrawOrder{
ID: goproto.String(orderId), ID: goproto.String(orderId),

View File

@ -611,6 +611,7 @@ func (s *Service) OpOrderList(ctx *gin.Context, req *vasproto.OpOrderListReq) (l
productIds = append(productIds, id) productIds = append(productIds, id)
} }
productMap, _ := _DefaultVas.GetProductMapByIds(ctx, productIds) productMap, _ := _DefaultVas.GetProductMapByIds(ctx, productIds)
logger.Info("GetProductMapByIds, ids: %v, map: %v", productIds, util.ToJson(productMap))
// 组装 // 组装
for _, o := range orders { for _, o := range orders {