1.调用接口获取永久素材
接口请求说明
http请求方式: POST,https协议 https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=ACCESS_TOKEN
返回的content解析到网页
$content = str_replace('data-src','src',$content);
$content = str_replace("<img ", "<img style='max-width:100%;height:auto;'", $content);
这只能显示图片,视频还是显示不出来 ,底部样式有点不对,
先记下
2.另一个思路
file_get_content() html页面 替换src 直接报参数错误。。。