|
...
|
...
|
@@ -313,7 +313,11 @@ class KeywordLogic extends BaseLogic |
|
|
|
$productIdArr = $keywordRelatedModel->selectField(['keyword_id'=>$keyword_id],'product_id');
|
|
|
|
if(!empty($productIdArr)){
|
|
|
|
$productModel = new Product();
|
|
|
|
$productList = $productModel->list(['id'=>['in',$productIdArr]],['id','title']);
|
|
|
|
$productList = $productModel->list(['id'=>['in',$productIdArr]],['id','title','route']);
|
|
|
|
foreach ($productList as $k => $v){
|
|
|
|
$v['route'] = $this->user['domain'].$v['route'];
|
|
|
|
$productList[$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($productList);
|
|
|
|
}
|
...
|
...
|
|