소스 검색

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


불러오는 중...
취소
저장