From 30deedf2205de442795819c920bb93fee68f1768 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 12 Jul 2021 12:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E5=94=AE=E5=89=8D=E5=90=8C?= =?UTF-8?q?=E6=84=8F=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/scheduler/basesch/basesch_ext.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/scheduler/basesch/basesch_ext.go b/business/jxcallback/scheduler/basesch/basesch_ext.go index 1ad3ee854..0f014691d 100644 --- a/business/jxcallback/scheduler/basesch/basesch_ext.go +++ b/business/jxcallback/scheduler/basesch/basesch_ext.go @@ -234,8 +234,10 @@ func (c *BaseScheduler) AgreeOrRefuseRefund(ctx *jxcontext.Context, afsOrderID s orderCount += v.Count } //如果售后退款的商品数等于订单商品数,我就当是全部退款了 - for _, v := range waybills { - c.CancelWaybill(v, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive) + if afsCount == orderCount { + for _, v := range waybills { + c.CancelWaybill(v, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive) + } } } if order.EarningType == model.EarningTypePoints {