|
@@ -16,6 +16,9 @@ use App\Models\Domain\DomainInfo; |
|
@@ -16,6 +16,9 @@ use App\Models\Domain\DomainInfo; |
|
16
|
use App\Models\Product\Keyword;
|
16
|
use App\Models\Product\Keyword;
|
|
17
|
use App\Models\Product\Product;
|
17
|
use App\Models\Product\Product;
|
|
18
|
use App\Models\RouteMap\RouteMap;
|
18
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
19
|
+use App\Models\Template\BSettingTemplate;
|
|
|
|
20
|
+use App\Models\Template\BTemplateCommon;
|
|
|
|
21
|
+use App\Models\Template\Setting;
|
|
19
|
use App\Services\ProjectServer;
|
22
|
use App\Services\ProjectServer;
|
|
20
|
use Illuminate\Console\Command;
|
23
|
use Illuminate\Console\Command;
|
|
21
|
use Illuminate\Support\Facades\DB;
|
24
|
use Illuminate\Support\Facades\DB;
|
|
@@ -142,7 +145,7 @@ class VideoTask extends Command |
|
@@ -142,7 +145,7 @@ class VideoTask extends Command |
|
142
|
'keywords' => $valData['keywords'],
|
145
|
'keywords' => $valData['keywords'],
|
|
143
|
'description' => $valData['description'],
|
146
|
'description' => $valData['description'],
|
|
144
|
'images' => $valData['images'],
|
147
|
'images' => $valData['images'],
|
|
145
|
- 'logo'=> $valData['logo'],
|
148
|
+ 'logo'=> $this->getLogo($val->project_id),
|
|
146
|
'bg'=> $valData['bg']
|
149
|
'bg'=> $valData['bg']
|
|
147
|
],
|
150
|
],
|
|
148
|
'task_id' => $task_id,
|
151
|
'task_id' => $task_id,
|
|
@@ -264,4 +267,15 @@ class VideoTask extends Command |
|
@@ -264,4 +267,15 @@ class VideoTask extends Command |
|
264
|
return $data;
|
267
|
return $data;
|
|
265
|
}
|
268
|
}
|
|
266
|
|
269
|
|
|
|
|
270
|
+ public function getLogo($project_id){
|
|
|
|
271
|
+ $domainModel = new DomainInfo();
|
|
|
|
272
|
+ $domainInfo = $domainModel->read(['project_id'=>$project_id]);
|
|
|
|
273
|
+ if($domainInfo === false){
|
|
|
|
274
|
+ return '';
|
|
|
|
275
|
+ }
|
|
|
|
276
|
+ $dom = file_get_html($domainInfo['domain'].'/');
|
|
|
|
277
|
+ $logo = $dom->find('.logo', 0)->find("img",0)->src;
|
|
|
|
278
|
+ DB::disconnect('custom_mysql');
|
|
|
|
279
|
+ return $logo;
|
|
|
|
280
|
+ }
|
|
267
|
} |
281
|
} |