From ffd67da56d971b03767ba3c71ce747af1342ea95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 17 Jun 2020 18:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=AE=A2=E5=8D=95=E5=8F=96=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/store_page.go | 2 +- platformapi/jdshopapi/store_page_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index c254a027..931df58a 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -427,7 +427,7 @@ func (a *API) OrderDetail(orderId string) (orderDetailResult *OrderDetailResult, if len(expectedDeliveredTime2) > 0 { times := strings.Split(expectedDeliveredTime2[1], ",") if len(times) > 1 { - orderDetailResult.ExpectedDeliveredTime = times[0] + " " + times[1][:strings.Index(times[1], ":")] + ":00:00" + orderDetailResult.ExpectedDeliveredTime = times[0] + " " + times[1][:strings.Index(times[1], ":")] + ":50:00" } } } diff --git a/platformapi/jdshopapi/store_page_test.go b/platformapi/jdshopapi/store_page_test.go index 91c9d23e..c1d7e9bb 100644 --- a/platformapi/jdshopapi/store_page_test.go +++ b/platformapi/jdshopapi/store_page_test.go @@ -60,8 +60,9 @@ func Test11(t *testing.T) { func TestAllOrders(t *testing.T) { result, err := api.AllOrders(&AllOrdersParam{ - Current: 1, - PageSize: 1, + Current: 1, + PageSize: 999, + OrderCreateDateRange: []string{"2020-06-17 00:00:00", "2020-06-17 23:59:59"}, }) if err != nil { t.Fatal(err)