Bladeren bron

update

withdrawal
shenjiachi 4 dagen geleden
bovenliggende
commit
b1ab570d55
1 gewijzigde bestanden met toevoegingen van 10 en 8 verwijderingen
  1. +10
    -8
      consume/egg_publish_consume.go

+ 10
- 8
consume/egg_publish_consume.go Bestand weergeven

@@ -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",


Laden…
Annuleren
Opslaan