Merge branch 'feat-IRONFANS-70' into test

This commit is contained in:
lwl0608 2024-04-25 14:07:56 +08:00
commit 6b3b18f31a
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
}
vo.GoldNum = wallet.Coins
vo.DiamondNum = wallet.WithdrawDiamonds
vo.DiamondNum = wallet.Diamonds
vo.WithdrawDiamondNum = wallet.WithdrawDiamonds
return vo
}

View File

@ -1515,6 +1515,13 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
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{
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)
}
productMap, _ := _DefaultVas.GetProductMapByIds(ctx, productIds)
logger.Info("GetProductMapByIds, ids: %v, map: %v", productIds, util.ToJson(productMap))
// 组装
for _, o := range orders {