From dd1399d17367affbae2693570770294d12ff761e Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 29 Nov 2019 16:26:13 +0800 Subject: [PATCH] =?UTF-8?q?comment:=E9=A5=BF=E7=99=BE=E5=9C=A8=E5=8F=91?= =?UTF-8?q?=E9=80=81=E8=BF=90=E5=8D=95=E5=8F=96=E6=B6=88=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=A6=82=E6=9E=9C=E8=AE=A2=E5=8D=95=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=8A=E6=97=B6=EF=BC=88=E5=85=B7=E4=BD=93=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=9C=AA=E7=9F=A5=EF=BC=89=E8=BD=AC=E5=87=BA=E8=87=AA?= =?UTF-8?q?=E9=80=81=EF=BC=8C=E5=88=99=E8=AE=A2=E5=8D=95=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E5=8F=96=E6=B6=88=EF=BC=8C=E4=B8=94=E4=B8=8D=E4=BC=9A=E5=8F=91?= =?UTF-8?q?=E9=80=81=E8=AE=A2=E5=8D=95=E5=8F=96=E6=B6=88=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/ebaiapi/order.go | 2 ++ platformapi/ebaiapi/order_test.go | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/platformapi/ebaiapi/order.go b/platformapi/ebaiapi/order.go index c7a144cb..78c98d99 100644 --- a/platformapi/ebaiapi/order.go +++ b/platformapi/ebaiapi/order.go @@ -36,6 +36,8 @@ const ( WaybillStatusWait4Courier = "4" // 等待分配骑士 WaybillStatusCourierAccepted = "7" // 骑士接单 WaybillStatusCourierPickedup = "8" // 骑士取餐 + // 饿百在发送运单取消事件后,如果订单没有及时(具体时间未知)转出自送,则订单会被取消,且不会发送订单取消事件 + // https://open-be.ele.me/dev/answer/reedit?list_id=23667&question=my WaybillStatusDeliveryCancled = "15" // 配送取消 WaybillStatusFinished = "16" // 配送完成 WaybillStatusExceptional = "17" // 配送异常 diff --git a/platformapi/ebaiapi/order_test.go b/platformapi/ebaiapi/order_test.go index 23aa6924..4a9582b8 100644 --- a/platformapi/ebaiapi/order_test.go +++ b/platformapi/ebaiapi/order_test.go @@ -7,7 +7,7 @@ import ( ) func TestOrderGet(t *testing.T) { - result, err := api.OrderGet("1572950448227442318") + result, err := api.OrderGet("1574590633159550053") if err != nil { t.Fatal(err) } else { @@ -16,7 +16,7 @@ func TestOrderGet(t *testing.T) { } func TestOrderGet2(t *testing.T) { - result, err := api.OrderGet2("1572950448227442318") + result, err := api.OrderGet2("1574550169196474502") if err != nil { t.Fatal(err) } else { @@ -81,6 +81,13 @@ func TestOrderCallDelivery(t *testing.T) { } } +func TestOrderSwitchselfdelivery(t *testing.T) { + err := api.OrderSwitchselfdelivery("1574550169196474502") + if err != nil { + t.Fatal(err) + } +} + func TestOrderSendOut(t *testing.T) { err := api.OrderSendOut("1555731848221773250", "") if err != nil { @@ -104,7 +111,7 @@ func TestOrderPrivateInfo(t *testing.T) { } func TestOrderDeliveryGet(t *testing.T) { - result, err := api.OrderDeliveryGet("15421782068884") + result, err := api.OrderDeliveryGet("1574550169196474502") if err != nil { t.Fatal(err) }