瀏覽代碼

update

withdrawal
shenjiachi 4 天之前
父節點
當前提交
b1ab570d55
共有 1 個文件被更改,包括 10 次插入8 次删除
  1. +10
    -8
      consume/egg_publish_consume.go

+ 10
- 8
consume/egg_publish_consume.go 查看文件

@@ -125,14 +125,16 @@ func handleEggPublishDataConsume(msgData []byte) error {
} else {
// 待结不够扣
// 扣完当前待结余额
err = rule.DealUserVirtualCoinMinus(session, md3.DealUserVirtualCoinReq{
Kind: "sub",
Title: enum.EggEnergyMaliciousAccountFlashingDeductionTeam.String(),
TransferType: int(enum.EggEnergyMaliciousAccountFlashingDeductionTeam),
CoinId: setting.TeamEggEnergyCoinId,
Uid: msg.Uid,
Amount: utils2.StrToFloat64(userVirtualWallet.Amount),
})
if utils2.StrToFloat64(userVirtualWallet.Amount) > 0 {
err = rule.DealUserVirtualCoinMinus(session, md3.DealUserVirtualCoinReq{
Kind: "sub",
Title: enum.EggEnergyMaliciousAccountFlashingDeductionTeam.String(),
TransferType: int(enum.EggEnergyMaliciousAccountFlashingDeductionTeam),
CoinId: setting.TeamEggEnergyCoinId,
Uid: msg.Uid,
Amount: utils2.StrToFloat64(userVirtualWallet.Amount),
})
}
remainingAmount := utils2.StrToFloat64(msg.Amount) - utils2.StrToFloat64(userVirtualWallet.Amount)
err := rule.DealUserVirtualCoinMinus(session, md3.DealUserVirtualCoinReq{
Kind: "sub",


Loading…
取消
儲存