Browse Source

update

master
dengbiao 4 days ago
parent
commit
eb2339cb2b
2 changed files with 7 additions and 2 deletions
  1. +3
    -1
      consume/egg_energy_settlement_public_give_activity_coin_consume.go
  2. +4
    -1
      consume/egg_energy_start_exchange_green_energy.go

+ 3
- 1
consume/egg_energy_settlement_public_give_activity_coin_consume.go View File

@@ -71,11 +71,13 @@ func handleEggEnergySettlementPublicGiveActivityCoinConsume(msgData []byte) erro
}() }()
session.Begin() session.Begin()


//3、给相应的用户加上个人的团队活跃积分
//2、给相应的用户加上个人的团队活跃积分
err = rule.DealUserVirtualCoin(session, *msg) err = rule.DealUserVirtualCoin(session, *msg)
if err != nil { if err != nil {
session.Rollback() session.Rollback()
return err return err
} }

//3、判断是否今天已
return session.Commit() return session.Commit()
} }

+ 4
- 1
consume/egg_energy_start_exchange_green_energy.go View File

@@ -43,7 +43,10 @@ func EggEnergyStartExchangeGreenEnergyConsume(queue md.MqQueue) {
"body": res.Body, "body": res.Body,
"err": err.Error(), "err": err.Error(),
})) }))
_ = res.Reject(true) //TODO::拒绝
_ = res.Reject(false) //TODO::拒绝 true
var msg *md2.EggEnergyStructForStartExchangeGreenEnergy
json.Unmarshal(res.Body, &msg)
ch.Publish(queue.ExchangeName, msg, queue.RoutKey)
} else { } else {
err = res.Ack(true) err = res.Ack(true)
fmt.Println("err ::: ", err) fmt.Println("err ::: ", err)


Loading…
Cancel
Save