作者 刘锟

update

@@ -462,7 +462,16 @@ class UpdateSeoTdk extends Command @@ -462,7 +462,16 @@ class UpdateSeoTdk extends Command
462 //通知C端更新界面 462 //通知C端更新界面
463 // $notify_master && $this->sendNotify($project_id, 1); //通知主站更新 463 // $notify_master && $this->sendNotify($project_id, 1); //通知主站更新
464 // $notify_keyword && $this->sendNotify($project_id, 4); //通知聚合页更新 464 // $notify_keyword && $this->sendNotify($project_id, 4); //通知聚合页更新
465 - $notify_master && $this->sendNotify($project_id, 2); //通知主站按需更新 465 +
  466 + if($notify_master){
  467 + //缓存 在发送页面更新的项目数据 id
  468 + $notify_cache_key = "seo_tdk_update_notify_{$project_id}";
  469 + if(Redis::setnx($notify_cache_key, 1)){
  470 + Redis::expire($notify_cache_key, 120);
  471 +
  472 + $this->sendNotify($project_id, 2); //通知主站按需更新
  473 + }
  474 + }
466 } 475 }
467 476
468 public function getPrompt($project_id, $prompt, $table, $data, $field){ 477 public function getPrompt($project_id, $prompt, $table, $data, $field){