add
This commit is contained in:
parent
25410368f5
commit
f3533490f8
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue