美团售前同意条件

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

View File

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