|
...
|
...
|
@@ -562,12 +562,12 @@ class OptimizeController extends BaseController |
|
|
|
}
|
|
|
|
ProjectServer::useProject($this->param['project_id']);
|
|
|
|
$aiBlogModel = new AiBlog();
|
|
|
|
$list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','title']);
|
|
|
|
$list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','new_title']);
|
|
|
|
$resultData = [];
|
|
|
|
if(!empty($list)){
|
|
|
|
$DomainInfo['domain'] = $DomainInfo['domain'] ?? '';
|
|
|
|
foreach ($list as $v){
|
|
|
|
$resultData[] = ('https://'.$DomainInfo['domain'].'/') . 'blog/' . $v['route'] . '/{' . $v['title'] . '}';
|
|
|
|
$resultData[] = ('https://'.$DomainInfo['domain'].'/') . 'blog/' . $v['route'] . '/{' . $v['new_title'] . '}';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
...
|
...
|
|