作者 lyh

gx

@@ -495,9 +495,8 @@ class OptimizeController extends BaseController @@ -495,9 +495,8 @@ class OptimizeController extends BaseController
495 $aiBlogModel = new AiBlog(); 495 $aiBlogModel = new AiBlog();
496 $list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','new_title']); 496 $list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','new_title']);
497 if(!empty($list)){ 497 if(!empty($list)){
498 - $DomainInfo['domain'] = $DomainInfo['domain'] ?? '';  
499 foreach ($list as $v){ 498 foreach ($list as $v){
500 - $data['ai_blog'][] = ('https://'.$DomainInfo['domain'].'/') . 'blog/' . $v['route'] . '/{' . $v['new_title'] . '}'; 499 + $data['ai_blog'][] = $domain . 'blog/' . $v['route'] . '/{' . $v['new_title'] . '}';
501 } 500 }
502 } 501 }
503 DB::disconnect('custom_mysql'); 502 DB::disconnect('custom_mysql');