This commit is contained in:
richboo111
2023-08-31 15:06:41 +08:00
parent 4054cb523d
commit 0395ee4617
5 changed files with 49 additions and 58 deletions

View File

@@ -375,22 +375,24 @@ func TestRetailSellStatus2(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
//根据分类id查询属性列表
func TestCategoryAttrList(t *testing.T) {
//result, err := api.CategoryAttrList(200002680)
result, err := api.CategoryAttrList(200005621)
result, err := api.CategoryAttrList(200002685)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
//func TestCategoryAttrValueList(t *testing.T) {
// result, err := api.CategoryAttrValueList(1200000088, "苹果", 1, 5)
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
//}
//特殊属性查询
func TestCategoryAttrValueList(t *testing.T) {
result, err := api.CategoryAttrValueList(1200000094, "青团")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestRetailRecommendTag(t *testing.T) {
result, err := api.RetailRecommendTag("飞利浦电吹风", "", 0, 1)