正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -563,8 +563,8 @@ class OptimizeController extends BaseController | @@ -563,8 +563,8 @@ class OptimizeController extends BaseController | ||
| 563 | ProjectServer::useProject($this->param['project_id']); | 563 | ProjectServer::useProject($this->param['project_id']); |
| 564 | $aiBlogModel = new AiBlog(); | 564 | $aiBlogModel = new AiBlog(); |
| 565 | $list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','title']); | 565 | $list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','title']); |
| 566 | + $resultData = []; | ||
| 566 | if(!empty($list)){ | 567 | if(!empty($list)){ |
| 567 | - $resultData = []; | ||
| 568 | $DomainInfo['domain'] = $DomainInfo['domain'] ?? ''; | 568 | $DomainInfo['domain'] = $DomainInfo['domain'] ?? ''; |
| 569 | foreach ($list as $v){ | 569 | foreach ($list as $v){ |
| 570 | $resultData[] = ('https://'.$DomainInfo['domain'].'/') . 'blog/' . $v['route'] . '/{' . $v['title'] . '}'; | 570 | $resultData[] = ('https://'.$DomainInfo['domain'].'/') . 'blog/' . $v['route'] . '/{' . $v['title'] . '}'; |
-
请 注册 或 登录 后发表评论