1
This commit is contained in:
@@ -3,6 +3,7 @@ package tiktok_store
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -133,8 +134,8 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
||||
Shape: tiktok_api.ShapeCircular,
|
||||
Circular: &warehouse_createFence_request.Circular{
|
||||
Center: &warehouse_createFence_request.Center{
|
||||
Longitude: float64(localStore.Lng) / float64(1000000),
|
||||
Latitude: float64(localStore.Lat) / float64(1000000),
|
||||
Longitude: jxutils.IntCoordinate2Standard(localStore.Lng),
|
||||
Latitude: jxutils.IntCoordinate2Standard(localStore.Lat),
|
||||
},
|
||||
Radius: utils.Str2Float64(localStore.DeliveryRange),
|
||||
},
|
||||
@@ -202,8 +203,8 @@ func UpdateFenceByStore(appOrgCode, outFenceID, storeID string) error {
|
||||
Shape: tiktok_api.ShapeCircular,
|
||||
Circular: &warehouse_setFence_request.Circular{
|
||||
Center: &warehouse_setFence_request.Center{
|
||||
Longitude: float64(localStore.Lng) / float64(1000000),
|
||||
Latitude: float64(localStore.Lat) / float64(1000000),
|
||||
Longitude: jxutils.IntCoordinate2Standard(localStore.Lng),
|
||||
Latitude: jxutils.IntCoordinate2Standard(localStore.Lat),
|
||||
},
|
||||
Radius: utils.Str2Float64(localStore.DeliveryRange),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user