ソースを参照

更新

order_statistics
huangjiajun 5ヶ月前
コミット
c2540aa487
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      consume/zhios_installment_payment_auto_repaid_consume.go

+ 3
- 3
consume/zhios_installment_payment_auto_repaid_consume.go ファイルの表示

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

読み込み中…
キャンセル
保存