正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -541,8 +541,8 @@ class BTemplateLogic extends BaseLogic | @@ -541,8 +541,8 @@ class BTemplateLogic extends BaseLogic | ||
| 541 | public function homeOrProduct($source,$source_id = 0,$is_custom = 0){ | 541 | public function homeOrProduct($source,$source_id = 0,$is_custom = 0){ |
| 542 | if($is_custom == 0){ | 542 | if($is_custom == 0){ |
| 543 | if($source == BTemplate::SOURCE_HOME){ | 543 | if($source == BTemplate::SOURCE_HOME){ |
| 544 | - RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']); | ||
| 545 | - $type = RouteMap::SOURCE_INDEX; | 544 | + $route = RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']); |
| 545 | + $type = RouteMap::SOURCE_PAGE; | ||
| 546 | }elseif($source == BTemplate::SOURCE_PRODUCT){ | 546 | }elseif($source == BTemplate::SOURCE_PRODUCT){ |
| 547 | $type = RouteMap::SOURCE_PRODUCT; | 547 | $type = RouteMap::SOURCE_PRODUCT; |
| 548 | }elseif($source == BTemplate::SOURCE_BLOG){ | 548 | }elseif($source == BTemplate::SOURCE_BLOG){ |
| @@ -552,7 +552,6 @@ class BTemplateLogic extends BaseLogic | @@ -552,7 +552,6 @@ class BTemplateLogic extends BaseLogic | ||
| 552 | }else{ | 552 | }else{ |
| 553 | $type = 'all'; | 553 | $type = 'all'; |
| 554 | } | 554 | } |
| 555 | - $route = RouteMap::getRoute($type,$source_id,$this->user['project_id']); | ||
| 556 | }else{ | 555 | }else{ |
| 557 | $type = RouteMap::SOURCE_MODULE; | 556 | $type = RouteMap::SOURCE_MODULE; |
| 558 | $route = RouteMap::getRoute($type,$source_id,$this->user['project_id']); | 557 | $route = RouteMap::getRoute($type,$source_id,$this->user['project_id']); |
-
请 注册 或 登录 后发表评论