作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2237
@@ -7,6 +7,7 @@ use App\Helper\Arr; @@ -7,6 +7,7 @@ use App\Helper\Arr;
7 use App\Helper\Gpt; 7 use App\Helper\Gpt;
8 use App\Models\Ai\AiCommand; 8 use App\Models\Ai\AiCommand;
9 use App\Models\Com\NoticeLog; 9 use App\Models\Com\NoticeLog;
  10 +use App\Models\Com\UpdateNotify;
10 use App\Models\Domain\DomainInfo; 11 use App\Models\Domain\DomainInfo;
11 use App\Models\Product\Keyword; 12 use App\Models\Product\Keyword;
12 use App\Models\Project\AggregateKeywordAffix; 13 use App\Models\Project\AggregateKeywordAffix;
@@ -133,7 +134,7 @@ class KeywordPageAiContent extends Command @@ -133,7 +134,7 @@ class KeywordPageAiContent extends Command
133 } 134 }
134 Redis::expire($cache_key, 120); 135 Redis::expire($cache_key, 120);
135 136
136 - $keyword = Keyword::where('id', $id)->select(['id', 'title', 'sale_title', 'sale_content', 'table_html', 'count_title', 'count_html'])->first(); 137 + $keyword = Keyword::where('id', $id)->select(['id', 'title', 'sale_title', 'sale_content', 'table_html', 'count_title', 'count_html', 'route'])->first();
137 138
138 echo getmypid() . ' ' . date('Y-m-d H:i:s') . ' id:' . $keyword['id'] . ' project_id:' . $task->project_id . PHP_EOL; 139 echo getmypid() . ' ' . date('Y-m-d H:i:s') . ' id:' . $keyword['id'] . ' project_id:' . $task->project_id . PHP_EOL;
139 140
@@ -171,6 +172,8 @@ class KeywordPageAiContent extends Command @@ -171,6 +172,8 @@ class KeywordPageAiContent extends Command
171 } 172 }
172 if ($update) { 173 if ($update) {
173 $keyword->save(); 174 $keyword->save();
  175 + //tdk已更新的数据,存入按需更新表
  176 + UpdateNotify::addUpdateItem($task->project_id, 'product_keyword', $keyword['route']);
174 $update_rows++; 177 $update_rows++;
175 } 178 }
176 } 179 }