|
...
|
...
|
@@ -16,6 +16,9 @@ use App\Models\Domain\DomainInfo; |
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\Template\BSettingTemplate;
|
|
|
|
use App\Models\Template\BTemplateCommon;
|
|
|
|
use App\Models\Template\Setting;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
...
|
...
|
@@ -142,7 +145,7 @@ class VideoTask extends Command |
|
|
|
'keywords' => $valData['keywords'],
|
|
|
|
'description' => $valData['description'],
|
|
|
|
'images' => $valData['images'],
|
|
|
|
'logo'=> $valData['logo'],
|
|
|
|
'logo'=> $this->getLogo($val->project_id),
|
|
|
|
'bg'=> $valData['bg']
|
|
|
|
],
|
|
|
|
'task_id' => $task_id,
|
|
...
|
...
|
@@ -264,4 +267,15 @@ class VideoTask extends Command |
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLogo($project_id){
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
$domainInfo = $domainModel->read(['project_id'=>$project_id]);
|
|
|
|
if($domainInfo === false){
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
$dom = file_get_html($domainInfo['domain'].'/');
|
|
|
|
$logo = $dom->find('.logo', 0)->find("img",0)->src;
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
return $logo;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|