str
This commit is contained in:
@@ -146,8 +146,12 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
|||||||
tempStr := strings.Split(localStore.DeliveryRange, ";")
|
tempStr := strings.Split(localStore.DeliveryRange, ";")
|
||||||
for v := len(tempStr) - 1; v >= 0; v-- {
|
for v := len(tempStr) - 1; v >= 0; v-- {
|
||||||
s2 := strings.Split(tempStr[v], ",")
|
s2 := strings.Split(tempStr[v], ",")
|
||||||
tLng, _ := strconv.ParseFloat(s2[0], 64)
|
globals.SugarLogger.Debugf("len==%d\n,2[0]==%s\n,s2[1]==%s", len(s2), s2[0], s2[1])
|
||||||
tLat, _ := strconv.ParseFloat(s2[1], 64)
|
tLng, err1 := strconv.ParseFloat(s2[0], 64)
|
||||||
|
tLat, err2 := strconv.ParseFloat(s2[1], 64)
|
||||||
|
if err1 != nil || err2 != nil {
|
||||||
|
globals.SugarLogger.Debugf("err1==%v,err2==%v", err1, err2)
|
||||||
|
}
|
||||||
vertices := warehouse_createFence_request.VerticesItem{
|
vertices := warehouse_createFence_request.VerticesItem{
|
||||||
Longitude: tLng, //todo 不能这么转
|
Longitude: tLng, //todo 不能这么转
|
||||||
Latitude: tLat,
|
Latitude: tLat,
|
||||||
|
|||||||
Reference in New Issue
Block a user