结贴: 经专员回复,自己手动测试 [图片] 经过上传以后 还需要转码,转码以后,会进行审核 [图片] [图片] 当然最后状态是"已通过" 结论就是不可能通过代码上传临时素材视频,然后还能发送预览成功,谢谢各位捧场
消息管理中预览接口mass/preview在发布视频类型,点击收到链接显示参数错误?在搜索同类问题未解决后,我根据专员回复,将我的问题叙述清楚 [图片] 图片截图来自:https://developers.weixin.qq.com/community/develop/doc/000c421a6c85a894eee9ed2c859400?highLine=%25E8%25A7%2586%25E9%25A2%2591%2520%25E5%258F%2582%25E6%2595%25B0%25E9%2594%2599%25E8%25AF%25AF 鉴于昨天我发布帖子以后,https://developers.weixin.qq.com/community/develop/doc/000ca21411c8a888017be69b251400 好像发错了模块,也已经过了18小时,失去了排查的最佳时机.故此重新发帖 AppID : wx3bd5bca46dc6d8ac 第一步: 获取(09:12:41)token 以后 使用media/upload上传临时素材返回mediaId(09:12:43收到) { "item": [], "media_id": "hebQsBY6OusmLZVVd832FxlsmRFf5lvIukpUJ-_e9CoUZiIo7NIbVFDiCZAkoGmL", "created_at": 1608685964, "type": "video" } 第二步: 09:12:43发送/media/uploadvideo接口,提交至图文视频指定接口 ,获取media_id ,url和内容如下 https://api.weixin.qq.com/cgi-bin/media/uploadvideo?access_token=40_u1x1znttJgBq-WEtw_poXXzPq67D30-hWp_btqW-lcDlH6fD7d9v-ghz1HjxPWZPqiNDujkT1haDcn2S-Ejmg7ipMncfCf3BgMDYvYIJdQSuh5QLG-uqrX48G6WMPzl4MNHIAJsHKBN6vL9yVCVbAFANUN {"media_id":"hebQsBY6OusmLZVVd832FxlsmRFf5lvIukpUJ-_e9CoUZiIo7NIbVFDiCZAkoGmL","description":"微信公众号API视频开发","title":"视频图文的标题"} 收到09:12:44 {"type":"video","media_id":"AMnyPjvxhEm6dBFMi_g_ep9UI-M8js07KsV9Hzwz0ZR80eBdO3Bt81FpU-q9l1WP","created_at":1608685964,"item":[]} 第三步 09:12:44调用/mass/preview预览接口,url+内容如下 https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token=40_u1x1znttJgBq-WEtw_poXXzPq67D30-hWp_btqW-lcDlH6fD7d9v-ghz1HjxPWZPqiNDujkT1haDcn2S-Ejmg7ipMncfCf3BgMDYvYIJdQSuh5QLG-uqrX48G6WMPzl4MNHIAJsHKBN6vL9yVCVbAFANUN {"touser":"o5hmdwN-vmOodaAKOh8nSIxsFuf4","msgtype":"mpvideo","mpvideo":{"media_id":"AMnyPjvxhEm6dBFMi_g_ep9UI-M8js07KsV9Hzwz0ZR80eBdO3Bt81FpU-q9l1WP"}} 根据预览接口的文档返回应该有个``msg_id``参数,这里没有,09:12:44收到如下,这个是因为 {"errcode":0,"errmsg":"preview success"} 此时,指定微信已经收到来自公众号的推送 [图片] 打开链接显示: [图片] 链接地址为: https://mp.weixin.qq.com/s?__biz=MzIzMTUyMTI1NA==&tempkey=MTA5Ml9PRUd0TmdvL1Y1R1N2a0hSSDZYRHZNOGhJNnlvRmZiS0pfa1IwdXlsOWx1bjBUa2MtNDJ2RGJUM3Z5YTdXTTVBNGVLeHA0R1pLOWhNOFhqdQ%3D%3D&cdn_videoid=XXIzTtMqCxwOaawoE91+VDIn1Z1ZPBv/sepYcNJZiO2BmmhxMUoaC0hJrXNgiosJgDVw7hikDSjobrC2UVfb9w==&scene=0&xtrack=1&previewkey=XrontFfvu3fLbfJbK7Q6pcNS9bJajjJKzz%252F0By7ITJA%253D 谢谢解决.
2020-12-25