作者 赵彬吉

update

... ... @@ -59,14 +59,15 @@ class RerunSeoTdk extends Command
*/
public function handle()
{
$where = [
'id' => 624
];
$project_ids = Project::where('type', Project::TYPE_TWO)->where($where)->pluck('id')->toArray();
$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();
foreach ($project_ids as $project_id){
try {
ProjectServer::useProject($project_id);
$this->changeCompanyName($project_id);
$project = ProjectServer::useProject($project_id);
//小语种
if($project['main_lang_id'] != 1){
$this->needTransKeywordPage($project_id);
}
DB::disconnect('custom_mysql');
}catch (\Exception $e){
dump($e->getMessage());
... ... @@ -74,6 +75,13 @@ class RerunSeoTdk extends Command
}
}
public function needTransKeywordPage($project_id)
{
$row = Keyword::update(['sale_title' => null, 'sale_content' => null, 'count_title'=>null, 'table_html'=>null, 'count_html' => null]);
dump($project_id .' - ' .$row);
}
/**
* 换了公司英文名的
* @author zbj
... ...