Initial commit

This commit is contained in:
易焱
2021-03-13 18:42:01 +08:00
commit d9a3c376d5
3243 changed files with 627198 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
namespace Admin\Controller;
use Think\Controller;
class ToolController extends AdminController{
public function GetWxCrawler(){
$url=I("post.url");
$crawler=D("WxCrawler");
$content = $crawler->crawByUrl($url);
if($content[content_html]){
$content[date]=date("Y-m-d H:i:s",$content[date]);
//远程图片保存
$SaveRemoteImg=new \Admin\Model\SaveRemoteImgModel();
$matches[1]=$content[cover];
$_POST["pubid"]=I("pubid");//要加入信息的pubid
$content[cover]=$SaveRemoteImg->saveRemoteImg($matches);
//
$this->success($content);
}else{
$this->error("抓取失败!");
}
}
}