美团售前同意条件

This commit is contained in:
suyl
2021-07-12 12:03:18 +08:00
parent cbf8818d0d
commit 30deedf220

View File

@@ -234,8 +234,10 @@ func (c *BaseScheduler) AgreeOrRefuseRefund(ctx *jxcontext.Context, afsOrderID s
orderCount += v.Count orderCount += v.Count
} }
//如果售后退款的商品数等于订单商品数,我就当是全部退款了 //如果售后退款的商品数等于订单商品数,我就当是全部退款了
for _, v := range waybills { if afsCount == orderCount {
c.CancelWaybill(v, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive) for _, v := range waybills {
c.CancelWaybill(v, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive)
}
} }
} }
if order.EarningType == model.EarningTypePoints { if order.EarningType == model.EarningTypePoints {