Quellcode durchsuchen

update 云发单消息回调

three
DengBiao vor 10 Monaten
Ursprung
Commit
475f22be5e
2 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen
  1. +1
    -1
      consume/cloud_issuance_msg_callback.go
  2. +6
    -3
      consume/init.go

+ 1
- 1
consume/cloud_issuance_msg_callback.go Datei anzeigen

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

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

}



Laden…
Abbrechen
Speichern