Просмотр исходного кода

update 云发单消息回调

three
DengBiao 10 месяцев назад
Родитель
Сommit
475f22be5e
2 измененных файлов: 7 добавлений и 4 удалений
  1. +1
    -1
      consume/cloud_issuance_msg_callback.go
  2. +6
    -3
      consume/init.go

+ 1
- 1
consume/cloud_issuance_msg_callback.go Просмотреть файл

@@ -25,7 +25,7 @@ func CloudIssuanceMsgCallBackConsume(queue md.MqQueue) {
}
defer ch.Release()
//2、取出数据进行消费
ch.Qos(1)
ch.Qos(10)
delivery := ch.Consume(queue.Name, false)

var res amqp.Delivery


+ 6
- 3
consume/init.go Просмотреть файл

@@ -67,9 +67,12 @@ func initConsumes() {
//jobs[consumeMd.ZhiosWithdrawReward] = ZhiosWithdrawReward
//
////jobs[consumeMd.ZhiosRechargeOrderFailDevFunName] = ZhiosRechargeOrderFailDev
//
//jobs[consumeMd.CloudIssuanceMsgCallBackFunName] = CloudIssuanceMsgCallBackConsume
jobs[consumeMd.SupplyCloudChainFenxiaoNewChangeFunName] = SupplyCloudChainFenxiaoNewChangeConsume

////////////////////////////////////// V1 /////////////////////////////////////////////////////
jobs[consumeMd.CloudIssuanceMsgCallBackFunName] = CloudIssuanceMsgCallBackConsume

//////////////////////////////////////// V2 /////////////////////////////////////////////////////
//jobs[consumeMd.SupplyCloudChainFenxiaoNewChangeFunName] = SupplyCloudChainFenxiaoNewChangeConsume

}



Загрузка…
Отмена
Сохранить