首先composer引入querylist composer require jaeger/querylist 注意需要php7.0以上版本 <?php namespace app\index\controller; use think\Controller; use QL\QueryList; class Index { public function index() { //采集页面链接 for($i=1;$i<=263;$i++){ $data = QueryList::get(&quo
终于找到解决方案了,这是一个值得庆祝的事情.... 原来是因为微信在源码中加入了防采集代码<!--headTrap<body></body><head></head><html></html>-->,把文章源码中的这一段去掉就可以了! 具体代码如下: public function getCon(){ header('Content-type: text/html; charset=utf-8'); import('Ven