作者 lyh

gx

... ... @@ -275,7 +275,8 @@ class VideoTask extends Command
}
$dom = file_get_html('https://'.$domainInfo['domain'].'/');
$logo = $dom->find('.logo', 0)->find("img",0)->src;
$bg = $dom->find('.section-banner-wrap-block',0)->find('img', 0)->src;
DB::disconnect('custom_mysql');
return $logo;
return ['logo'=>$logo,'ng'=>$bg];
}
}
... ...
... ... @@ -266,14 +266,15 @@ class Demo extends Command
// }
public function handle(){
$domainModel = new DomainInfo();
$domainInfo = $domainModel->read(['project_id'=>116]);
$domainInfo = $domainModel->read(['project_id'=>6]);
if($domainInfo === false){
dd('11111');
}
$dom = file_get_html('https://'.$domainInfo['domain'].'/');
$logo = $dom->find('.logo', 0)->find("img",0)->src;
$bg = $dom->find('.section-banner-wrap-block',0)->find('img', 0)->src;
// return $logo;
dd($logo);
dd($bg);
// $projectModel = new Project();
// $list = $projectModel->list(['delete_status'=>0,'type'=>['!=',0]]);
// foreach ($list as $v1){
... ...