作者 lyh

gx

@@ -57,12 +57,12 @@ class UpdateSeoTdk extends Command @@ -57,12 +57,12 @@ class UpdateSeoTdk extends Command
57 echo date('Y-m-d H:i:s') . ' start: ' . $project_id . PHP_EOL; 57 echo date('Y-m-d H:i:s') . ' start: ' . $project_id . PHP_EOL;
58 try { 58 try {
59 ProjectServer::useProject($project_id); 59 ProjectServer::useProject($project_id);
60 - $this->updateProduct($project_id);  
61 - $this->updateProductCate($project_id);  
62 - $this->updateBlogs($project_id);  
63 - $this->updateBlogCate($project_id);  
64 - $this->updateNews($project_id);  
65 - $this->updateNewsCate($project_id); 60 +// $this->updateProduct($project_id);
  61 +// $this->updateProductCate($project_id);
  62 +// $this->updateBlogs($project_id);
  63 +// $this->updateBlogCate($project_id);
  64 +// $this->updateNews($project_id);
  65 +// $this->updateNewsCate($project_id);
66 $this->updatePage($project_id); 66 $this->updatePage($project_id);
67 DB::disconnect('custom_mysql'); 67 DB::disconnect('custom_mysql');
68 }catch (\Exception $e){ 68 }catch (\Exception $e){
@@ -332,7 +332,7 @@ class UpdateSeoTdk extends Command @@ -332,7 +332,7 @@ class UpdateSeoTdk extends Command
332 $v = (array)$v; 332 $v = (array)$v;
333 echo date('Y-m-d H:i:s') . ' updatePage: ' . $v['id'] . PHP_EOL; 333 echo date('Y-m-d H:i:s') . ' updatePage: ' . $v['id'] . PHP_EOL;
334 $data = []; 334 $data = [];
335 - if(empty($v['seo_title'])){ 335 + if(empty($v['title'])){
336 //生成seo_title 336 //生成seo_title
337 $data['title'] = $v['title']; 337 $data['title'] = $v['title'];
338 } 338 }
@@ -353,6 +353,7 @@ class UpdateSeoTdk extends Command @@ -353,6 +353,7 @@ class UpdateSeoTdk extends Command
353 DB::connection('custom_mysql')->table('gl_web_custom_template')->where(['id'=>$v['id']])->update($data); 353 DB::connection('custom_mysql')->table('gl_web_custom_template')->where(['id'=>$v['id']])->update($data);
354 } 354 }
355 } 355 }
  356 + return true;
356 } 357 }
357 358
358 /** 359 /**