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