|
...
|
...
|
@@ -7,6 +7,7 @@ use App\Helper\Arr; |
|
|
|
use App\Helper\Gpt;
|
|
|
|
use App\Models\Ai\AiCommand;
|
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\Com\UpdateNotify;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Project\AggregateKeywordAffix;
|
|
...
|
...
|
@@ -133,7 +134,7 @@ class KeywordPageAiContent extends Command |
|
|
|
}
|
|
|
|
Redis::expire($cache_key, 120);
|
|
|
|
|
|
|
|
$keyword = Keyword::where('id', $id)->select(['id', 'title', 'sale_title', 'sale_content', 'table_html', 'count_title', 'count_html'])->first();
|
|
|
|
$keyword = Keyword::where('id', $id)->select(['id', 'title', 'sale_title', 'sale_content', 'table_html', 'count_title', 'count_html', 'route'])->first();
|
|
|
|
|
|
|
|
echo getmypid() . ' ' . date('Y-m-d H:i:s') . ' id:' . $keyword['id'] . ' project_id:' . $task->project_id . PHP_EOL;
|
|
|
|
|
|
...
|
...
|
@@ -171,6 +172,8 @@ class KeywordPageAiContent extends Command |
|
|
|
}
|
|
|
|
if ($update) {
|
|
|
|
$keyword->save();
|
|
|
|
//tdk已更新的数据,存入按需更新表
|
|
|
|
UpdateNotify::addUpdateItem($task->project_id, 'product_keyword', $keyword['route']);
|
|
|
|
$update_rows++;
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|