This commit is contained in:
richboo111
2022-11-08 10:57:23 +08:00
parent f05592f5b9
commit 6cb62b9bdf

View File

@@ -146,7 +146,7 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
tempStr := strings.Split(localStore.DeliveryRange, ";")
for v := len(tempStr) - 1; v >= 0; v-- {
s2 := strings.Split(tempStr[v], ",")
globals.SugarLogger.Debugf("len==%d\n,2[0]==%s\n,s2[1]==%s", len(s2), s2[0], s2[1])
globals.SugarLogger.Debugf("len==%d\n,2[0]==%s\n", len(s2), s2[0])
tLng, err1 := strconv.ParseFloat(s2[0], 64)
tLat, err2 := strconv.ParseFloat(s2[1], 64)
if err1 != nil || err2 != nil {