合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !1637
正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
| @@ -492,6 +492,13 @@ class OptimizeController extends BaseController | @@ -492,6 +492,13 @@ class OptimizeController extends BaseController | ||
| 492 | $this->processChunkedList($productCategoryModel, ['status' => $productCategoryModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_category'); | 492 | $this->processChunkedList($productCategoryModel, ['status' => $productCategoryModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_category'); |
| 493 | $productKeywordModel = new Keyword(); | 493 | $productKeywordModel = new Keyword(); |
| 494 | $this->processChunkedList($productKeywordModel, ['status' => $productKeywordModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_keyword'); | 494 | $this->processChunkedList($productKeywordModel, ['status' => $productKeywordModel::STATUS_ACTIVE], ['id', 'title', 'route'], $domain, $data, 'product_keyword'); |
| 495 | + $aiBlogModel = new AiBlog(); | ||
| 496 | + $list = $aiBlogModel->list(['route'=>['!=',null]],'id',['route','new_title']); | ||
| 497 | + if(!empty($list)){ | ||
| 498 | + foreach ($list as $v){ | ||
| 499 | + $data['ai_blog'][] = $domain . 'blog/' . $v['route'] . '/{' . $v['new_title'] . '}'; | ||
| 500 | + } | ||
| 501 | + } | ||
| 495 | DB::disconnect('custom_mysql'); | 502 | DB::disconnect('custom_mysql'); |
| 496 | $this->response('success', Code::SUCCESS, $data); | 503 | $this->response('success', Code::SUCCESS, $data); |
| 497 | } | 504 | } |
-
请 注册 或 登录 后发表评论