Ver código fonte

update

master
dengbiao 3 meses atrás
pai
commit
e511a22a59
2 arquivos alterados com 2 adições e 1 exclusões
  1. +1
    -0
      consume/init.go
  2. +1
    -1
      consume/one_circles_sign_in_consume.go

+ 1
- 0
consume/init.go Ver arquivo

@@ -89,6 +89,7 @@ func initConsumes() {
jobs[consumeMd.OneCirclesActivityCoinAutoExchangeGreenEnergyForTeamFunName] = OneCirclesActivityCoinAutoExchangeGreenEnergyForTeamConsume
jobs[consumeMd.OneCirclesSettlementPublicGiveActivityCoinFunName] = OneCirclesSettlementPublicGiveActivityCoinConsume
jobs[consumeMd.OneCirclesAddPublicPlatoonUserRelationCommissionFunName] = OneCirclesAddPublicPlatoonUserRelationCommissionConsume

//jobs[consumeMd.OneCirclesSignInCopyGreenEnergyFunName] = OneCirclesSignInCopyGreenEnergyConsume

//////////////////////////////////////// withdraw /////////////////////////////////////////////////////


+ 1
- 1
consume/one_circles_sign_in_consume.go Ver arquivo

@@ -25,7 +25,7 @@ func OneCirclesSignInGreenEnergyConsume(queue md.MqQueue) {
//1、将自己绑定到交换机上
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey)
//2、取出数据进行消费
ch.Qos(1)
ch.Qos(5)
delivery := ch.Consume(queue.Name, false)

one_circles.Init(cfg.RedisAddr)


Carregando…
Cancelar
Salvar