对应的media_id:pczGyHg2pD0zXvCdTOUbrESKyoRpgvBJPmAHkSKpW_03qZm7PgPXmOvA0bHfVAXl也是我通过上传临时素材获得的;
请求获取临时素材的时候就报错了{"errcode":40007,"errmsg":"invalid media_id hint: [Lg.ZAa07440024] rid: 6087f0d0-5c83dcaa-438ebbcc"},请求方式出问题了吗?
PHP代码
$queryUrl = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=&media_id=pczGyHg2pD0zXvCdTOUbrESKyoRpgvBJPmAHkSKpW_03qZm7PgPXmOvA0bHfVAXl";
$ch = curl_init($queryUrl);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_NOBODY, 0);//只取body头
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//curl_exec执行成功后返回执行的结果;不设置的话,curl_exec执行成功则返回true
$output = curl_exec($ch);
curl_close($ch);
里面的access_token是有的这里不方便直接复制
如此请求为什么一直报错{"errcode":40007,"errmsg":"invalid media_id hint: [Lg.ZAa07440024] rid: 6087f0d0-5c83dcaa-438ebbcc"}