Pārlūkot izejas kodu

更新

order_statistics
huangjiajun pirms 5 mēnešiem
vecāks
revīzija
c2540aa487
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      consume/zhios_installment_payment_auto_repaid_consume.go

+ 3
- 3
consume/zhios_installment_payment_auto_repaid_consume.go Parādīt failu

@@ -35,7 +35,7 @@ func InstallmentPaymentAutoRepaidConsume(queue md.MqQueue) {
if ok == true {
//fmt.Println(string(res.Body))
fmt.Println(">>>>>>>>>>>>>>>>InstallmentPaymentAutoRepaidConsume<<<<<<<<<<<<<<<<<<<<<<<<<")
err = handleInstallmentPaymentAutoRepaidConsume(res.Body)
err = handleInstallmentPaymentAutoRepaidConsume(ch, res.Body)
if err != nil {
fmt.Println("handleInstallmentPaymentAutoRepaidConsumeERR:::::", err.Error())
}
@@ -49,7 +49,7 @@ func InstallmentPaymentAutoRepaidConsume(queue md.MqQueue) {
fmt.Println("get msg done")
}

func handleInstallmentPaymentAutoRepaidConsume(msgData []byte) error {
func handleInstallmentPaymentAutoRepaidConsume(ch *rabbit.Channel, msgData []byte) error {
time.Sleep(time.Duration(1) * time.Millisecond) //休眠1毫秒

//1、解析mq中queue的数据结构体
@@ -61,6 +61,6 @@ func handleInstallmentPaymentAutoRepaidConsume(msgData []byte) error {
engine := db.DBs[msg.MasterId]

//2、调用 `DealInstallmentPaymentAutoRepaid` 制度方法进行扣款
err = installment_payment.DealInstallmentPaymentAutoRepaid(engine, *msg, msg.MasterId)
err = installment_payment.DealInstallmentPaymentAutoRepaid(engine, ch, *msg, msg.MasterId)
return nil
}

Notiek ielāde…
Atcelt
Saglabāt