作者 lyh

gx

@@ -34,7 +34,7 @@ class UpgradeCount extends Command @@ -34,7 +34,7 @@ class UpgradeCount extends Command
34 34
35 public function handle(){ 35 public function handle(){
36 $projectModel = new Project(); 36 $projectModel = new Project();
37 - $list = $projectModel->list(['is_upgrade'=>1,'delete_status'=>0,'id'=>['<=',985]]); 37 + $list = $projectModel->list(['is_upgrade'=>1,'delete_status'=>0,'id'=>['<=',550]]);
38 foreach ($list as $v) { 38 foreach ($list as $v) {
39 echo date('Y-m-d H:i:s') . '项目id:'.$v['id'] . PHP_EOL; 39 echo date('Y-m-d H:i:s') . '项目id:'.$v['id'] . PHP_EOL;
40 ProjectServer::useProject($v['id']); 40 ProjectServer::useProject($v['id']);
@@ -149,6 +149,7 @@ class UpdateSeoTdk extends Command @@ -149,6 +149,7 @@ class UpdateSeoTdk extends Command
149 try { 149 try {
150 $this->project = ProjectServer::useProject($project_id); 150 $this->project = ProjectServer::useProject($project_id);
151 $this->seo_tdk($project_id, $task->id); 151 $this->seo_tdk($project_id, $task->id);
  152 + //TODO::通知C端更新所有界面
152 DB::disconnect('custom_mysql'); 153 DB::disconnect('custom_mysql');
153 }catch (\Exception $e){ 154 }catch (\Exception $e){
154 echo date('Y-m-d H:i:s') . 'line: '. $e->getLine() .' error: ' . $project_id . '->' . $e->getMessage() . PHP_EOL; 155 echo date('Y-m-d H:i:s') . 'line: '. $e->getLine() .' error: ' . $project_id . '->' . $e->getMessage() . PHP_EOL;