调用接口:拉取联盟商品详情
接口地址:
https://developers.weixin.qq.com/doc/channels/API/league/ecleague_getitem.html
当入参的need_relation为true时,会返回该计划下的达人列表,每页最多50,page_index表示页面下标
但是现在发现不管page_index为几,返回的达人列表都是第一页的
我们的appid:wx3d9fd2a43ca5096a
把page_size设成5,方便这里展示
page_index为1时:
{"info_id":"3741995",
"need_relation":true,
"page_index":1,
"page_size":5,
"type":3,
"need_total_num":true}
返回:
{
"errcode": 0,
"errmsg": "ok",
"item": {
"product_id": "10000060187932",
"type": 3,
"status": 1,
"ratio": 0,
"exclusive_info": {
"info_id": "3741995",
"begin_time": 0,
"end_time": 0,
"finder_ids": [
"spheLqqjWegV0aA",
"sphgN5isbdbJAdd",
"sphb27szHeOlp76",
"sphVCMmlFmlR7OB",
"sphWK6Yn3XWzpb3"
],
"finder_num": 302
},
"ext_info": {
"is_sale_forbidden": false
}
}
}
当page_index为2时,入参:
{"info_id":"3741995",
"need_relation":true,
"page_index":2,
"page_size":5,
"type":3,
"need_total_num":true}
返回:
{
"errcode": 0,
"errmsg": "ok",
"item": {
"product_id": "10000060187932",
"type": 3,
"status": 1,
"ratio": 0,
"exclusive_info": {
"info_id": "3741995",
"begin_time": 0,
"end_time": 0,
"finder_ids": [
"spheLqqjWegV0aA",
"sphgN5isbdbJAdd",
"sphb27szHeOlp76",
"sphVCMmlFmlR7OB",
"sphWK6Yn3XWzpb3"
],
"finder_num": 302
},
"ext_info": {
"is_sale_forbidden": false
}
}
}
两个返回的finder_ids是一样的,这样会导致我们的代码认为还有下一页,会进入死循环
你好,视频号带货官方客服目前已经对小店商家全量开放,商家可以登录视频号小店后台-点击【平台咨询】,进入官方客服咨询界面,平台客服在线时间:每天9:00-21:00,感谢你的理解与支持!
请认准视频号带货官方客服咨询渠道路径:
电脑端:登录视频号小店-点击右上角【平台咨询】-进入平台客服界面咨询。
移动端:进入视频号小店界面-点击右上角【人形图标】-选择【平台咨询】-进入平台客服界面咨询。
达人、组件、未入驻用户咨询渠道:
https://work.weixin.qq.com/kfid/kfca6d815186a410016