正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -9,6 +9,7 @@ use App\Models\Service\Service as ServiceSettingModel; | @@ -9,6 +9,7 @@ use App\Models\Service\Service as ServiceSettingModel; | ||
| 9 | use App\Models\Template\BCustomTemplate; | 9 | use App\Models\Template\BCustomTemplate; |
| 10 | use App\Models\Template\BTemplateCommon; | 10 | use App\Models\Template\BTemplateCommon; |
| 11 | use App\Models\Template\BTemplateLog; | 11 | use App\Models\Template\BTemplateLog; |
| 12 | +use App\Models\Template\BTemplateMain; | ||
| 12 | use App\Models\Template\Setting; | 13 | use App\Models\Template\Setting; |
| 13 | use App\Models\Template\BTemplate; | 14 | use App\Models\Template\BTemplate; |
| 14 | 15 | ||
| @@ -83,6 +84,13 @@ class CustomTemplateLogic extends BaseLogic | @@ -83,6 +84,13 @@ class CustomTemplateLogic extends BaseLogic | ||
| 83 | if($this->param['url'] == $this->model::NOT_FOUND_PAGE_URL){ | 84 | if($this->param['url'] == $this->model::NOT_FOUND_PAGE_URL){ |
| 84 | $this->fail('404页面已存在'); | 85 | $this->fail('404页面已存在'); |
| 85 | } | 86 | } |
| 87 | + if($this->param['url'] == 'search'){ | ||
| 88 | + $bTemplateMainModel = new BTemplateMain(); | ||
| 89 | + $mainInfo = $bTemplateMainModel->read(['type'=>8]); | ||
| 90 | + if($mainInfo !== false){ | ||
| 91 | + $this->param['html'] = $mainInfo['main_html']; | ||
| 92 | + } | ||
| 93 | + } | ||
| 86 | $this->param['project_id'] = $this->user['project_id']; | 94 | $this->param['project_id'] = $this->user['project_id']; |
| 87 | $id = $this->model->addReturnId($this->param); | 95 | $id = $this->model->addReturnId($this->param); |
| 88 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); | 96 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); |
-
请 注册 或 登录 后发表评论