瀏覽代碼

更新

master
huangjiajun 4 月之前
父節點
當前提交
79bb08d3d7
共有 1 個檔案被更改,包括 1 行新增6 行删除
  1. +1
    -6
      rule/installment_payment/installment_payment_auto_repaid.go

+ 1
- 6
rule/installment_payment/installment_payment_auto_repaid.go 查看文件

@@ -68,7 +68,7 @@ func InstallmentPaymentAutoRepaid(engine *xorm.Engine, masterId string, ch *rabb
}

// DealInstallmentPaymentAutoRepaid 处理分期付自动还款
func DealInstallmentPaymentAutoRepaid(engine *xorm.Engine, args md.InstallmentPaymentStructForAutoRepaid, masterId string) (err error) {
func DealInstallmentPaymentAutoRepaid(engine *xorm.Engine, ch *rabbit.Channel, args md.InstallmentPaymentStructForAutoRepaid, masterId string) (err error) {
now := time.Now()
session := engine.NewSession()
defer func() {
@@ -148,11 +148,6 @@ func DealInstallmentPaymentAutoRepaid(engine *xorm.Engine, args md.InstallmentPa
Oid: oid,
Provider: "installment_payment",
}
ch, err := rabbit.Cfg.Pool.GetChannel()
if err != nil {
return nil
}
defer ch.Release()
err1 := ch.PublishV2(md.RelateReward, zhios_order_relate_utils.SerializeStr(rewardData), md.RelateRewardData)
if err1 != nil {
ch.PublishV2(md.RelateReward, zhios_order_relate_utils.SerializeStr(rewardData), md.RelateRewardData)


Loading…
取消
儲存