正在显示
2 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -32,9 +32,9 @@ class Category extends Base | @@ -32,9 +32,9 @@ class Category extends Base | ||
| 32 | 32 | ||
| 33 | protected $appends = ['route']; | 33 | protected $appends = ['route']; |
| 34 | 34 | ||
| 35 | - public function getRouteAttribute(){ | ||
| 36 | - return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_CATE, $this->id, $this->project_id); | ||
| 37 | - } | 35 | +// public function getRouteAttribute(){ |
| 36 | +// return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_CATE, $this->id, $this->project_id); | ||
| 37 | +// } | ||
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| @@ -17,7 +17,7 @@ class Keyword extends Base | @@ -17,7 +17,7 @@ class Keyword extends Base | ||
| 17 | 17 | ||
| 18 | //连接数据库 | 18 | //连接数据库 |
| 19 | protected $connection = 'custom_mysql'; | 19 | protected $connection = 'custom_mysql'; |
| 20 | - public function getRouteAttribute(){ | ||
| 21 | - return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id); | ||
| 22 | - } | 20 | +// public function getRouteAttribute(){ |
| 21 | +// return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id); | ||
| 22 | +// } | ||
| 23 | } | 23 | } |
-
请 注册 或 登录 后发表评论