|
...
|
...
|
@@ -421,6 +421,12 @@ class PrivateController extends BaseController |
|
|
|
$productKeywordModel = new Keyword();
|
|
|
|
$list = $productKeywordModel::orderByRaw('LENGTH(title) ASC')->limit(50)->pluck('title','route')->toArray();
|
|
|
|
}
|
|
|
|
$data = [];
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
$route = $this->param['domain'].'/'.$k;
|
|
|
|
$keyword = $v;
|
|
|
|
$data[$keyword] = $route;
|
|
|
|
}
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
$this->response('success',Code::SUCCESS,$list);
|
|
|
|
}
|
...
|
...
|
|