Merge branch 'feat-IRONFANS-70' into test
This commit is contained in:
commit
6b3b18f31a
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue