作者 lyh

gx生成评论

@@ -36,7 +36,14 @@ class InitKeywordComment extends Command @@ -36,7 +36,14 @@ class InitKeywordComment extends Command
36 public $number = 100; 36 public $number = 100;
37 37
38 public function handle(){ 38 public function handle(){
39 - return $this->_action(467); 39 + $projectModel = new Project();
  40 + $lists = $projectModel->list(['delete_status' => 0,'project_type'=>0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']);
  41 + foreach ($lists as $val) {
  42 + echo date('Y-m-d H:i:s') . '开始--项目的id:' . $val['id'] . PHP_EOL;
  43 + $this->_action($val['id']);
  44 + }
  45 + return true;
  46 + $keywordCommonModel = new AggregateKeywordComment();
40 while (true){ 47 while (true){
41 $list = NoticeLog::where('type', NoticeLog::TYPE_INIT_KEYWORD_COMMON)->where('status', NoticeLog::STATUS_PENDING)->get(); 48 $list = NoticeLog::where('type', NoticeLog::TYPE_INIT_KEYWORD_COMMON)->where('status', NoticeLog::STATUS_PENDING)->get();
42 if(empty($list)){ 49 if(empty($list)){