http请求方式:POST/FORM,使用https https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE 调用示例(使用curl命令,用FORM表单方式上传一个多媒体文件): curl -F [email protected] “https://api.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE”
返回错误{"errcode":41005,"errmsg":"media data missing hint: [IUMwsA0992d139]"}"
请求方式用的curl $data['media'] = "@/image/55.jpg"; ihttp(url,json_encode($data))这种格式
主要是测试小程序创建直播,需要coverImg
填写mediaID,直播间背景图,图片规则:建议像素1080*1920,大小不超过2M,mediaID获取参考:https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html