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