自定义交易组件,获取的三级分类,我们这边怎么做联动,怎么拿到一级分类,二级分类?
发布于 6 年前 作者 gangdai 12115 次浏览 来自 问答
https://api.weixin.qq.com/shop/cat/get?access_token=xxxxxxxxx

这个接口的

https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/cat/get_children_cateogry.html

难道是我们得自己去便利所有数据,去拿到一级二级三级分类?

2 回复

类目接口需要调用方自主遍历,减少调用次数。这个0的问题感谢反馈,正在修复中。

 { [“third_cat_id”]=> int(430011) [“third_cat_name”]=> string(6) “赠品” [“qualification”]=> string(0) “” [“qualification_type”]=> int(0) [“product_qualification”]=> string(0) “” [“product_qualification_type”]=> int(0) [“first_cat_id”]=> int(0) [“first_cat_name”]=> string(0) “” [“second_cat_id”]=> int(0) [“second_cat_name”]=> string(0) “” }

还有这个430011的分类为啥是没有一二级分类的,这样我们怎么做联动,望官方解答下

回到顶部