From bda7a4edb24af0d8a18ad23dd7f10e58112d55ef Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 29 Jul 2019 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BA=AC=E4=B8=9C=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E9=97=A8=E5=BA=97=E8=AE=BE=E7=BD=AE=E6=88=90=E4=BA=86=E6=8E=A5?= =?UTF-8?q?=E5=8D=95=E5=8D=B3=E6=8B=A3=E8=B4=A7=E5=AE=8C=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E7=A7=8D=E6=83=85=E5=86=B5=E4=B8=8B=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=8B=A3=E8=B4=A7=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/scheduler/defsch/defsch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxcallback/scheduler/defsch/defsch.go b/business/jxcallback/scheduler/defsch/defsch.go index 5a8afa469..75e0ae1d8 100644 --- a/business/jxcallback/scheduler/defsch/defsch.go +++ b/business/jxcallback/scheduler/defsch/defsch.go @@ -390,6 +390,9 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo } } s.updateOrderByBill(order, nil, false) + if time.Now().Sub(order.OrderCreatedAt) < 2*time.Minute { // 京东一些门店设置成了接单即拣货完成,这种情况下自动调用拣货完成 + s.autoPickupGood(savedOrderInfo) + } } else { s.ProxyCancelWaybill(order, bill, partner.CancelWaybillReasonNotAcceptIntime, partner.CancelWaybillReasonStrNotAcceptIntime) }