收藏
回答

40007media_id无效?

使用接口https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html上传成功图片返回的结果如下:

{"type":"image","media_id":"IOB80B8708cWWJQXmWNWLeLU8sj8MCpEY8sUnzBAoiqCARi-rt3rv297XbLrmwE8","created_at":1656060034,"item":[]}

再使用接口https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Get_temporary_materials.html获取图片

请求的url:https://api.weixin.qq.com/cgi-bin/media/get?access_token=58_ZdtwgkANaROx16rtExJ1gvio63xd3eziAYGZ7X2cxZ6-OFks_Oh17QQ9lo7LgNJkq8dsKOalvchYKwEuqY7M5d-6CV3dhbkC6L87bDUOPPogO8dKq_D9Kck89hxNjyyy0obRBqu8GnuYCovyJOChAMDCHV&media_id=IOB80B8708cWWJQXmWNWLeLU8sj8MCpEY8sUnzBAoiqCARi-rt3rv297XbLrmwE8

但是返回的结果:{"errcode": 40007, "errmsg": "invalid media_id hint: [jHGura08480015] rid: 62b57f98-0b56aa6f-6b4990cf"}

提示mdeia_id无效

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

1 个回答

登录 后发表内容
问题标签