正在显示
1 个修改的文件
包含
14 行增加
和
6 行删除
| @@ -59,14 +59,15 @@ class RerunSeoTdk extends Command | @@ -59,14 +59,15 @@ class RerunSeoTdk extends Command | ||
| 59 | */ | 59 | */ |
| 60 | public function handle() | 60 | public function handle() |
| 61 | { | 61 | { |
| 62 | - $where = [ | ||
| 63 | - 'id' => 624 | ||
| 64 | - ]; | ||
| 65 | - $project_ids = Project::where('type', Project::TYPE_TWO)->where($where)->pluck('id')->toArray(); | 62 | + $project_ids = Project::where('type', Project::TYPE_TWO)->where('site_status',0)->where('extend_type',0)->where('delete_status',0)->where('tag_page_version', '>' ,1)->where('uptime', '<=', date('Y-m-d H:i:s'))->pluck('id')->toArray(); |
| 66 | foreach ($project_ids as $project_id){ | 63 | foreach ($project_ids as $project_id){ |
| 67 | try { | 64 | try { |
| 68 | - ProjectServer::useProject($project_id); | ||
| 69 | - $this->changeCompanyName($project_id); | 65 | + $project = ProjectServer::useProject($project_id); |
| 66 | + | ||
| 67 | + //小语种 | ||
| 68 | + if($project['main_lang_id'] != 1){ | ||
| 69 | + $this->needTransKeywordPage($project_id); | ||
| 70 | + } | ||
| 70 | DB::disconnect('custom_mysql'); | 71 | DB::disconnect('custom_mysql'); |
| 71 | }catch (\Exception $e){ | 72 | }catch (\Exception $e){ |
| 72 | dump($e->getMessage()); | 73 | dump($e->getMessage()); |
| @@ -74,6 +75,13 @@ class RerunSeoTdk extends Command | @@ -74,6 +75,13 @@ class RerunSeoTdk extends Command | ||
| 74 | } | 75 | } |
| 75 | } | 76 | } |
| 76 | 77 | ||
| 78 | + public function needTransKeywordPage($project_id) | ||
| 79 | + { | ||
| 80 | + $row = Keyword::update(['sale_title' => null, 'sale_content' => null, 'count_title'=>null, 'table_html'=>null, 'count_html' => null]); | ||
| 81 | + dump($project_id .' - ' .$row); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + | ||
| 77 | /** | 85 | /** |
| 78 | * 换了公司英文名的 | 86 | * 换了公司英文名的 |
| 79 | * @author zbj | 87 | * @author zbj |
-
请 注册 或 登录 后发表评论