Browse Source

update 云发单消息回调

three
DengBiao 11 months ago
parent
commit
475f22be5e
2 changed files with 7 additions and 4 deletions
  1. +1
    -1
      consume/cloud_issuance_msg_callback.go
  2. +6
    -3
      consume/init.go

+ 1
- 1
consume/cloud_issuance_msg_callback.go View File

@@ -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 View File

@@ -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

}



Loading…
Cancel
Save