This commit is contained in:
邹宗楠
2025-02-12 16:35:26 +08:00
parent 7bd3a9f833
commit 3b4650b92f
3 changed files with 8 additions and 12 deletions

View File

@@ -18,18 +18,10 @@ func TestN2ame(t *testing.T) {
}
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")
a.GetRecommendCategory([]string{"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_b145e9c8e91e58960e75efe189af74f5_sx_347106_www800-800", "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_1e15828b61eb2bc83588bd0d88bee288_sx_458861_www800-800"})
//data, err := a.GetRecommendCategoryByName(name)
//fmt.Println(data)
//fmt.Println(err)
//img := []string{
// //"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/VqGYBUaL_m_f229ad3ce7a93d906a2412709e363825_sx_762890_www750-3527",
// "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/VqGYBUaL_m_7457cda4c101d05bcd2a1258b61d2ba1_sx_223234_www800-800",
// //"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/v1_GhxlaZ_70852585116381186630419_c55b8401b00e96e4114431a1dbd7c99c_sx_582346_www1000-1000",
//}
name := "广茄 "
data, err := a.GetRecommendCategoryByName(name)
fmt.Println(data)
fmt.Println(err)
}
// GetTiktokImgList 获取抖音图片链接