|
...
|
...
|
@@ -41,7 +41,6 @@ class KeywordLogic extends BaseLogic |
|
|
|
$info = $this->model->read($this->param);
|
|
|
|
$info['url'] = $this->user['domain'] . $info['route'];
|
|
|
|
$info['related_news_info'] = News::whereIn('id', $info['related_news_ids'])->select(['id', 'name'])->get();
|
|
|
|
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -73,15 +72,12 @@ class KeywordLogic extends BaseLogic |
|
|
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
}
|
|
|
|
// //清除缓存
|
|
|
|
Common::del_user_cache('product_keyword',$this->user['project_id']);
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :添加组装数据
|
|
|
|
* @name :addHandleParam
|
...
|
...
|
|