作者 lyh

gx

... ... @@ -10,6 +10,7 @@
namespace App\Console\Commands\Ai;
use App\Models\Ai\AiVideo;
use App\Models\Domain\DomainInfo;
use App\Models\Product\Keyword;
use App\Models\Product\Product;
use App\Models\Project\AiBlogTask as AiBlogTaskModel;
... ... @@ -59,6 +60,9 @@ class AiVideoAutoPublish extends Command
if($action == 'auto_save_video_task'){
$this->auto_save_video_task();
}
if($action == 'getAiVideoParam'){
$this->getAiVideoParam();
}
}
/**
... ... @@ -288,7 +292,12 @@ class AiVideoAutoPublish extends Command
public function getAiVideoParam($project_id)
{
//获取当前网站域名
$domain = 'www.cs-conveyor.com';
$domainModel = new DomainInfo();
$domain = $domainModel->getValue(['project_id'=>$project_id],'domain');
if(empty($domain)){
return true;
}
$domain = str_replace('blog.', 'www.', $domain);
try {
$sitemap_url = 'https://' . $domain . '/sitemap_post_tag.xml';
$sitemap_string = file_get_contents($sitemap_url);
... ...