收藏
回答

下载自定义菜单中的音频素材报错?

第一步:在公众号(服务号)后台的网页上,配置菜单:配置图片内容的菜单和音频内容的菜单。

第二步:获得授权的第三方开发平台,通过Api接口获取上面公众号的菜单

第三步:通过菜单中的图片media_id下载图片,正常。

第四步:通过菜单中的音频media_id下载音频,报错,错误如下。


第二步获取的数据:

[{"name":"友商协","sub_button":{"list":[{"news_info":{"list":[{"cover_url":"https://mmbiz.qpic.cn/sz_mmbiz_jpg/Ric0Jic7h0I0I8otoBl2k0ZopYVsJj5xeSnwGR1XQGIRC0nzdNN4hDyfpNMNoHwP6s8o2hQKbxmpEhrQUM8wdicDg/0?wx_fmt=jpeg","show_cover":0,"author":"","digest":"会费收取是商协会管理工作的重点,也是商协会管理工作永远绕不过的难点。会费催缴困难、收缴过程耗时、对账方式繁复","content_url":"http://mp.weixin.qq.com/s?__biz=Mzk0NzQyMDM0Mg==&mid=2247483683&idx=1&sn=359a129a8122993fe9bd209fbd2341ca&chksm=c3766cfaf401e5ecdbd86b3ce5ba3dabbccc68958f9cf8d63b764bf99fe85f2b535f9199d8fd#rd","title":"商协管理系统v1.2版本更新-财务管理","source_url":""}]},"name":"图文消息","type":"news","value":"wBZ6pV1SvOwjDuzEIeKtlwpOgYZPv_LHmHyItjJNMOf4c8eStKOGq1imUujiISIS"},{"name":"文字","type":"text","value":"如想了解更多详情,请扫描专属顾问二维码,将会为您一对一解答~"},{"name":"图片","type":"img","value":"X9pmH0-XNJ3V4n5B8Mhnjr5o7-C2Qu2vL59mP72is2ACFmblX8UwLl6cWLqLGg8G"},{"name":"视频","type":"video","value":"http://mp.weixin.qq.com/mp/mp/video?__biz=Mzk0NzQyMDM0Mg==&mid=100000040&sn=f40e9caad5165b2fa0ac661df0ef56e6&vid=wxv_2640006092395085825&idx=1&vidsn=6b3e9c046273d05dbdf0c620126cb94d&fromid=1#rd"},{"name":"音频","type":"voice","value":"X9pmH0-XNJ3V4n5B8MhnjgFaxXPJJGmMBzDSlFzKHmO8rU-0cDL1C_ilRx3yaj6I"}]}},{"name":"平台2","sub_button":{"list":[{"name":"网页","type":"view","url":"http://284.cca.pub"},{"pagepath":"pages/index/index","appid":"wx052ac73860234db5","name":"小程序","type":"miniprogram","url":"https://www.shangxie.club/home"}]}},{"name":"三个","type":"view","url":"http://mp.weixin.qq.com/s?__biz=Mzk0NzQyMDM0Mg==&mid=2247483683&idx=1&sn=359a129a8122993fe9bd209fbd2341ca&chksm=c3766cfaf401e5ecdbd86b3ce5ba3dabbccc68958f9cf8d63b764bf99fe85f2b535f9199d8fd&scene=18#wechat_redirect"


错信息:{"errcode":46001,"errmsg":"media data no exist hint: [X0Nz8a07758236] rid: 635e03ee-3c3a66e5-233c4fde"}

回答关注问题邀请回答
收藏

1 个回答

  • 公众号技术运营专员-livia
    公众号技术运营专员-livia
    2022-10-31

    你好,你要上传音频下载可以通过API添加素材的方式来添加音频获取下载。或者你直接通过获取素材的API方式来获取对应素材

    2022-10-31
    有用
    回复
登录 后发表内容