This commit is contained in:
richboo111
2023-06-15 09:52:22 +08:00
parent 094c263944
commit f5b24c834b
3 changed files with 17 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package sfps2
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"strings"
"testing"
)
@@ -112,3 +113,13 @@ func TestGetRiderLatestPosition(t *testing.T) {
fmt.Println(utils.Format4Output(resp, false))
fmt.Println(err)
}
func TestNew(t *testing.T) {
te := strings.Split("113.71776,34.767501", ",")
if len(te) > 0 {
fmt.Println(te[0], te[1])
lng := utils.Str2Float64(te[0])
lat := utils.Str2Float64(te[1])
fmt.Println(lng, lat)
}
}