This commit is contained in:
richboo111
2023-09-04 17:34:32 +08:00
parent 480cfd4571
commit 06c0903a61
2 changed files with 6 additions and 5 deletions

View File

@@ -459,6 +459,7 @@ func (a *API) CategoryAttrValueList(attr_id int64, keyword string) (categoryAttr
"keyword": keyword,
"page_num": 1,
"page_size": 20,
"category_type": 1,
})
if err == nil {
utils.Map2StructByJson(result, &categoryAttrValueListResult, false)

View File

@@ -387,7 +387,7 @@ func TestCategoryAttrList(t *testing.T) {
//特殊属性查询
func TestCategoryAttrValueList(t *testing.T) {
result, err := api.CategoryAttrValueList(1200000094, "青团")
result, err := api.CategoryAttrValueList(1200000088, "散装糖果")
if err != nil {
t.Fatal(err)
}