dengbiao 3 주 전
부모
커밋
6ece027b8e
1개의 변경된 파일10개의 추가작업 그리고 26개의 파일을 삭제
  1. +10
    -26
      rule/egg_energy/activity_coin_ready_exchange_egg_energy.go

+ 10
- 26
rule/egg_energy/activity_coin_ready_exchange_egg_energy.go 파일 보기

@@ -142,31 +142,15 @@ func ActivityCoinReadyExchangeEggEnergy(engine *xorm.Engine, uid int64, ch *rabb
}

//TODO::推入rabbitmq 异步处理
if egg_system_rules.StrToFloat64(autoExchangeNumsByPersonAmountValue) > 0 {
ch.Publish(md2.EggEnergyExchange, md2.EggEnergyStructForStartExchangeGreenEnergy{
Uid: uid,
SignId: sign.Id,
PersonEggEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamEggEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
PersonPointCoinId: coin1.Id,
PersonEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamPointCoinId: coin2.Id,
TeamEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
}, md2.EggEnergyRoutKeyForStartExchangeGreenEnergy)
}

if egg_system_rules.StrToFloat64(autoExchangeNumsByTeamAmountValue) > 0 {
ch.Publish(md2.EggEnergyExchange, md2.EggEnergyStructForStartExchangeGreenEnergy{
Uid: uid,
SignId: sign.Id,
PersonEggEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamEggEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
PersonPointCoinId: coin1.Id,
PersonEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamPointCoinId: coin2.Id,
TeamEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
}, md2.EggEnergyRoutKeyForStartExchangeGreenEnergy)
}

ch.Publish(md2.EggEnergyExchange, md2.EggEnergyStructForStartExchangeGreenEnergy{
Uid: uid,
SignId: sign.Id,
PersonEggEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamEggEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
PersonPointCoinId: coin1.Id,
PersonEnergyCoinId: eggEnergyBasicSetting.PersonEggEnergyCoinId,
TeamPointCoinId: coin2.Id,
TeamEnergyCoinId: eggEnergyBasicSetting.TeamEggEnergyCoinId,
}, md2.EggEnergyRoutKeyForStartExchangeGreenEnergy)
return
}

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