From bc98a14251feaee1a20f60e7e2563d4850c0ce0f Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 11 Jan 2023 09:53:32 +0800 Subject: [PATCH] 1 --- .../tiktok_shop/tiktok_api/transport_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/platformapi/tiktok_shop/tiktok_api/transport_test.go b/platformapi/tiktok_shop/tiktok_api/transport_test.go index 7ae010f9..8c340ab4 100644 --- a/platformapi/tiktok_shop/tiktok_api/transport_test.go +++ b/platformapi/tiktok_shop/tiktok_api/transport_test.go @@ -2,7 +2,6 @@ package tiktok_api import ( "fmt" - "git.rosy.net.cn/baseapi/utils" "reflect" "testing" ) @@ -46,16 +45,3 @@ func Test(t *testing.T) { //Strings2Objs(`[1262627,1723872383]`, &a) //fmt.Printf("%v", reflect.TypeOf(a).NumField()) } -func Strings2Objs(strAndObjAddPairs ...interface{}) (err error) { - str := "" - for k, v := range strAndObjAddPairs { - if k%2 == 0 { - str, _ = v.(string) - } else if str != "" { - if err = utils.UnmarshalUseNumber([]byte(str), v); err != nil { - return err - } - } - } - return nil -}