This commit is contained in:
richboo111
2023-03-28 14:39:41 +08:00
9 changed files with 124 additions and 14 deletions

View File

@@ -7,10 +7,22 @@ import (
"testing"
)
func TestN2ame(t *testing.T) {
polay := make(map[string]interface{}, 0)
polay["a"] = ""
polay["b"] = "1"
fmt.Println(polay["a"].(string))
fmt.Println(polay["b"].(string))
fmt.Println(polay["c"].(string))
}
func TestGetRecommendCategory(t *testing.T) {
img, _, err := GetTiktokImgListTest(a, "668707", "", "", "http://img20.360buyimg.com/vc/jfs/t1/8979/39/8591/236012/5c0e45f3E1537c120/a66aafc95cf66977.jpg", "http://img20.360buyimg.com/vc/jfs/t1/23027/3/955/82830/5c0e45f3E0855eeae/ae65ee9555a29579.jpg")
fmt.Println(err)
a.GetRecommendCategory(strings.Split(img, "|"))
data, err := a.GetRecommendCategory(strings.Split(img, "|"))
fmt.Println(data)
fmt.Println(err)
}
// GetTiktokImgList 获取抖音图片链接