|
...
|
...
|
@@ -289,7 +289,7 @@ class AiVideoAutoPublish extends Command |
|
|
|
* @method :post
|
|
|
|
* @time :2025/8/1 16:25
|
|
|
|
*/
|
|
|
|
public function getAiVideoParam($project_id = 4914)
|
|
|
|
public function getAiVideoParam($project_id = 3751)
|
|
|
|
{
|
|
|
|
//获取当前网站域名
|
|
|
|
$domainModel = new DomainInfo();
|
|
...
|
...
|
@@ -319,14 +319,17 @@ class AiVideoAutoPublish extends Command |
|
|
|
$img = $dom->find('.layout .global_section img');
|
|
|
|
$images = [];
|
|
|
|
foreach ($img as $item) {
|
|
|
|
if (empty($item->src) || empty($item->alt))
|
|
|
|
if (empty($item->src) || empty($item->alt)){
|
|
|
|
continue;
|
|
|
|
array_push($images, ['src' => $item->src, 'alt' => $item->alt]);
|
|
|
|
}
|
|
|
|
array_push($images, ['url' => $item->src, 'alt' => $item->alt]);
|
|
|
|
}
|
|
|
|
if (empty($title) || empty($content) || empty($images)) {
|
|
|
|
$num++;
|
|
|
|
goto AGAIN;
|
|
|
|
}
|
|
|
|
dd(['title'=>$title,'remark'=>$content,'images'=>$images]);
|
|
|
|
return ['title'=>$title,'remark'=>$content,'images'=>$images];
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
echo 'project_id: ' . $project_id . ', domain: ' . $domain . ', error: ' . $e->getMessage() . PHP_EOL;
|
|
|
|
}
|
...
|
...
|
|