warehouse
This commit is contained in:
@@ -61,7 +61,7 @@ func (a *API) GetShopCategory(cid int64) ([]*RetailCategoryInfo, error) {
|
||||
param.Cid = cid
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
globals.SugarLogger.Debugf("获取类目id=========:%s", request.GetUrlPath())
|
||||
globals.SugarLogger.Debugf("获取类目id:=%s", utils.Format4Output(result, false))
|
||||
//globals.SugarLogger.Debugf("获取类目id:=%s", utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ import (
|
||||
warehouse_setFence_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/warehouse_setFence/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
@@ -278,14 +277,17 @@ func TestGetStoreSaleLimit(t *testing.T) {
|
||||
|
||||
//更新电子围栏
|
||||
func TestSplitFence(t *testing.T) {
|
||||
tempStr := strings.Split("104.111331,30.67964544419017;104.13348225189759,30.671752134736078;104.14265760085712,30.652696;104.13348225189759,30.63363986526392;104.111331,30.625746555809826;104.08917974810242,30.63363986526392;104.0800043991429,30.652696;104.08917974810242,30.671752134736078", ";")
|
||||
//tempStr := strings.Split("104.111331,30.67964544419017;104.13348225189759,30.671752134736078;104.14265760085712,30.652696;104.13348225189759,30.63363986526392;104.111331,30.625746555809826;104.08917974810242,30.63363986526392;104.0800043991429,30.652696;104.08917974810242,30.671752134736078", ";")
|
||||
//fmt.Printf("%d", len(tempStr))
|
||||
for v := len(tempStr) - 1; v >= 0; v-- {
|
||||
s2 := strings.Split(tempStr[v], ",")
|
||||
Longitude := utils.Str2Float64(s2[0])
|
||||
Latitude := utils.Str2Float64(s2[1])
|
||||
fmt.Printf("%f,%f\n", Longitude, Latitude)
|
||||
}
|
||||
|
||||
fmt.Println(float64(120733783) / float64(1000000))
|
||||
fmt.Println(utils.Int64ToFloat64(120733783) / float64(1000000))
|
||||
//for v := len(tempStr) - 1; v >= 0; v-- {
|
||||
// s2 := strings.Split(tempStr[v], ",")
|
||||
// Longitude := utils.Str2Float64(s2[0])
|
||||
// Latitude := utils.Str2Float64(s2[1])
|
||||
// fmt.Printf("%f,%f\n", Longitude, Latitude)
|
||||
//}
|
||||
}
|
||||
|
||||
//运费模板
|
||||
|
||||
Reference in New Issue
Block a user