This commit is contained in:
苏尹岚
2021-03-01 13:50:23 +08:00
parent 1a99e75bb8
commit 7d34db488b
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)
}