From 7d34db488b9a777b220aa56fcdc3af4daf7189bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 1 Mar 2021 13:50:23 +0800 Subject: [PATCH] aa --- platformapi/jdshopapi/store_page.go | 4 ++-- platformapi/jdshopapi/store_page_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index d9f63706..d2b6f58e 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -847,11 +847,11 @@ func (a *API) UpdateExpand(storeID int) (err error) { //更新门店围栏等 //https://porder.shop.jd.com/order/orderlist/allOrders -func (a *API) CreateGisFence(storeID int) (err error) { +func (a *API) CreateGisFence(storeID, kilometres int) (err error) { reqID := time.Now().Unix() _, err = a.AccessStorePage2("https://o2o-stores.shop.jd.com/shop/createGisFence", map[string]interface{}{ "storeIds": storeID, - "kilometres": 3, + "kilometres": kilometres, "version": "1.0.0", "source": "pc", "requestId": reqID, diff --git a/platformapi/jdshopapi/store_page_test.go b/platformapi/jdshopapi/store_page_test.go index 5ae2f2e5..f25b1cad 100644 --- a/platformapi/jdshopapi/store_page_test.go +++ b/platformapi/jdshopapi/store_page_test.go @@ -218,7 +218,7 @@ func TestUpdateExpand(t *testing.T) { } func TestCreateGisFence(t *testing.T) { - err := api.CreateGisFence(1000070143) + err := api.CreateGisFence(1000070143, 3) if err != nil { t.Fatal(err) }