作者 lyh

gx

@@ -41,7 +41,6 @@ class KeywordLogic extends BaseLogic @@ -41,7 +41,6 @@ class KeywordLogic extends BaseLogic
41 $info = $this->model->read($this->param); 41 $info = $this->model->read($this->param);
42 $info['url'] = $this->user['domain'] . $info['route']; 42 $info['url'] = $this->user['domain'] . $info['route'];
43 $info['related_news_info'] = News::whereIn('id', $info['related_news_ids'])->select(['id', 'name'])->get(); 43 $info['related_news_info'] = News::whereIn('id', $info['related_news_ids'])->select(['id', 'name'])->get();
44 -  
45 return $this->success($info); 44 return $this->success($info);
46 } 45 }
47 46
@@ -73,15 +72,12 @@ class KeywordLogic extends BaseLogic @@ -73,15 +72,12 @@ class KeywordLogic extends BaseLogic
73 $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); 72 $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
74 $this->model->edit(['route'=>$route],['id'=>$id]); 73 $this->model->edit(['route'=>$route],['id'=>$id]);
75 } 74 }
76 -// //清除缓存  
77 Common::del_user_cache('product_keyword',$this->user['project_id']); 75 Common::del_user_cache('product_keyword',$this->user['project_id']);
78 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route); 76 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
79 $this->curlDelRoute(['new_route'=>$route]); 77 $this->curlDelRoute(['new_route'=>$route]);
80 return $this->success(); 78 return $this->success();
81 } 79 }
82 80
83 -  
84 -  
85 /** 81 /**
86 * @remark :添加组装数据 82 * @remark :添加组装数据
87 * @name :addHandleParam 83 * @name :addHandleParam