正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -562,12 +562,12 @@ class OptimizeController extends BaseController | @@ -562,12 +562,12 @@ class OptimizeController extends BaseController | ||
| 562 | } | 562 | } |
| 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','new_title']); |
| 566 | $resultData = []; | 566 | $resultData = []; |
| 567 | if(!empty($list)){ | 567 | if(!empty($list)){ |
| 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['new_title'] . '}'; |
| 571 | } | 571 | } |
| 572 | } | 572 | } |
| 573 | DB::disconnect('custom_mysql'); | 573 | DB::disconnect('custom_mysql'); |
-
请 注册 或 登录 后发表评论