合并分支 'master-server' 到 'master'
gx 查看合并请求 !1074
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -421,6 +421,12 @@ class PrivateController extends BaseController | @@ -421,6 +421,12 @@ class PrivateController extends BaseController | ||
| 421 | $productKeywordModel = new Keyword(); | 421 | $productKeywordModel = new Keyword(); |
| 422 | $list = $productKeywordModel::orderByRaw('LENGTH(title) ASC')->limit(50)->pluck('title','route')->toArray(); | 422 | $list = $productKeywordModel::orderByRaw('LENGTH(title) ASC')->limit(50)->pluck('title','route')->toArray(); |
| 423 | } | 423 | } |
| 424 | + $data = []; | ||
| 425 | + foreach ($list as $k => $v){ | ||
| 426 | + $route = $this->param['domain'].'/'.$k; | ||
| 427 | + $keyword = $v; | ||
| 428 | + $data[$keyword] = $route; | ||
| 429 | + } | ||
| 424 | DB::disconnect('custom_mysql'); | 430 | DB::disconnect('custom_mysql'); |
| 425 | $this->response('success',Code::SUCCESS,$list); | 431 | $this->response('success',Code::SUCCESS,$list); |
| 426 | } | 432 | } |
-
请 注册 或 登录 后发表评论