作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !1637
... ... @@ -492,6 +492,13 @@ class OptimizeController extends BaseController
$this->processChunkedList($productCategoryModel, ['status' => $productCategoryModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_category');
$productKeywordModel = new Keyword();
$this->processChunkedList($productKeywordModel, ['status' => $productKeywordModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_keyword');
$aiBlogModel = new AiBlog();
$list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','new_title']);
if(!empty($list)){
foreach ($list as $v){
$data['ai_blog'][] = $domain . 'blog/' . $v['route'] . '/{' . $v['new_title'] . '}';
}
}
DB::disconnect('custom_mysql');
$this->response('success', Code::SUCCESS, $data);
}
... ...