正在显示
1 个修改的文件
包含
8 行增加
和
1 行删除
| @@ -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)){ |
-
请 注册 或 登录 后发表评论