作者 lyh

gx统计页面数量

... ... @@ -18,6 +18,7 @@ use App\Models\Ai\AiCommand;
use App\Models\Com\NoticeLog;
use App\Models\Com\V6WeeklyReport;
use App\Models\Product\Category;
use App\Models\Project\AggregateKeywordAffix;
use App\Models\Project\AiBlogTask;
use App\Models\Project\DeployBuild;
use App\Models\Project\DeployOptimize;
... ... @@ -58,7 +59,22 @@ class lyhDemo extends Command
protected $description = '更新路由';
public function handle(){
$aggregateKeywordAffixModel = new AggregateKeywordAffix();
$info = $aggregateKeywordAffixModel->read(['project_id'=>3298]);
$projectModel = new Project();
$lists = $projectModel->list(['delete_status' => 0,'project_type'=>0,'extend_type'=>0,'type'=>2], 'id', ['id']);
foreach ($lists as $item){
if(in_array($item['project_id'],[467,110,3298])){
continue;
}
$data = [
'project_id'=>$item['project_id'],
'prefix'=>$info['prefix'],
'suffix'=>$info['suffix']
];
$aggregateKeywordAffixModel->addReturnId($data);
}
return true;
}
public function _actionTemplateMain(){
... ...