From f31b2f91673241fb696e436d30f3a09a168437b6 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 1 May 2019 17:16:39 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E7=BE=8E=E5=9B=A2=E5=A4=96=E5=8D=96?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtwmapi/order_test.go | 35 ++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/platformapi/mtwmapi/order_test.go b/platformapi/mtwmapi/order_test.go index 940805b2..d9aa1a3e 100644 --- a/platformapi/mtwmapi/order_test.go +++ b/platformapi/mtwmapi/order_test.go @@ -15,7 +15,7 @@ func TestOrderViewStatus(t *testing.T) { } func TestOrderGetOrderDetail(t *testing.T) { - result, err := api.OrderGetOrderDetail(67413510345111009, false) + result, err := api.OrderGetOrderDetail(25236872740350976, false) if err != nil { t.Fatal(err) } @@ -25,6 +25,32 @@ func TestOrderGetOrderDetail(t *testing.T) { t.Log(utils.Format4Output(result, false)) } +func TestOrderReceived(t *testing.T) { + err := api.OrderReceived(25236872740350976) + if err != nil { + t.Fatal(err) + } +} + +func TestOrderConfirm(t *testing.T) { + err := api.OrderConfirm(25236872740350976) + if err != nil { + t.Fatal(err) + } +} + +func TestOrderApplyPartRefund(t *testing.T) { + err := api.OrderApplyPartRefund(25236872740350976, "缺货", []*RefundSku{ + &RefundSku{ + AppFoodCode: "30831", + Count: 1, + }, + }) + if err != nil { + t.Fatal(err) + } +} + func TestOrderLogisticsStatus(t *testing.T) { result, err := api.OrderLogisticsStatus(33762863658107006) if err != nil { @@ -47,13 +73,6 @@ func TestOrderBatchPullPhoneNumber(t *testing.T) { // t.Log(utils.Format4Output(result, false)) } -func TestOrderConfirm(t *testing.T) { - err := api.OrderConfirm(24617230733961993) - if err != nil { - t.Fatal(err) - } -} - func TestGetOrderRefundDetail(t *testing.T) { result, err := api.GetOrderRefundDetail(67413510345111009, 0) if err != nil {