作者 lyh

Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server

@@ -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 }
@@ -214,7 +214,7 @@ class RankDataController extends BaseController @@ -214,7 +214,7 @@ class RankDataController extends BaseController
214 $data = [ 214 $data = [
215 'position' => 0, 215 'position' => 0,
216 ]; 216 ];
217 - $res = HttpUtils::get('http://rank.waimaoq.com/luminati_rank', $param); 217 + $res = HttpUtils::get('http://rank.waimaoq.com/luminati_rank', $param, [], 20);
218 if ($res) { 218 if ($res) {
219 $res = Arr::s2a($res); 219 $res = Arr::s2a($res);
220 $data['position'] = $res['position'] ?? ''; 220 $data['position'] = $res['position'] ?? '';
@@ -12,7 +12,6 @@ class AutoPullNotify extends Base @@ -12,7 +12,6 @@ class AutoPullNotify extends Base
12 { 12 {
13 return [ 13 return [
14 1 => '硅谷云服务器', 14 1 => '硅谷云服务器',
15 - 20 => '硅谷建站服务器01',  
16 25 => '硅谷建站服务器02', 15 25 => '硅谷建站服务器02',
17 15 => '硅谷IDC服务器01(6.0美服1)', 16 15 => '硅谷IDC服务器01(6.0美服1)',
18 14 => '硅谷IDC服务器02(6.0美服2)', 17 14 => '硅谷IDC服务器02(6.0美服2)',
@@ -27,7 +26,7 @@ class AutoPullNotify extends Base @@ -27,7 +26,7 @@ class AutoPullNotify extends Base
27 24 => '白帽专属服务器02', 26 24 => '白帽专属服务器02',
28 23 => '西班牙服务器', 27 23 => '西班牙服务器',
29 6 => '自建站服务器群', 28 6 => '自建站服务器群',
30 - 27 => '硅谷建站服务器03', 29 + 27 => '硅谷建站服务器01',
31 ]; 30 ];
32 } 31 }
33 32