|
@@ -13,6 +13,7 @@ use App\Models\Template\BTemplateLog; |
|
@@ -13,6 +13,7 @@ use App\Models\Template\BTemplateLog; |
|
13
|
use App\Models\Template\BTemplateMain;
|
13
|
use App\Models\Template\BTemplateMain;
|
|
14
|
use App\Models\Template\Setting;
|
14
|
use App\Models\Template\Setting;
|
|
15
|
use App\Models\Template\BTemplate;
|
15
|
use App\Models\Template\BTemplate;
|
|
|
|
16
|
+use App\Models\Template\TemplateTypeMain;
|
|
16
|
|
17
|
|
|
17
|
class CustomTemplateLogic extends BaseLogic
|
18
|
class CustomTemplateLogic extends BaseLogic
|
|
18
|
{
|
19
|
{
|
|
@@ -179,10 +180,11 @@ class CustomTemplateLogic extends BaseLogic |
|
@@ -179,10 +180,11 @@ class CustomTemplateLogic extends BaseLogic |
|
179
|
$this->fail('404页面已存在');
|
180
|
$this->fail('404页面已存在');
|
|
180
|
}
|
181
|
}
|
|
181
|
if($this->param['url'] == 'search'){
|
182
|
if($this->param['url'] == 'search'){
|
|
182
|
- $bTemplateMainModel = new BTemplateMain();
|
183
|
+ $bTemplateMainModel = new TemplateTypeMain();
|
|
183
|
$mainInfo = $bTemplateMainModel->read(['type'=>8]);
|
184
|
$mainInfo = $bTemplateMainModel->read(['type'=>8]);
|
|
184
|
if($mainInfo !== false){
|
185
|
if($mainInfo !== false){
|
|
185
|
$this->param['html'] = $mainInfo['main_html'];
|
186
|
$this->param['html'] = $mainInfo['main_html'];
|
|
|
|
187
|
+ $this->param['html_style'] = "<style id='globalsojs-styles'></style>";
|
|
186
|
}
|
188
|
}
|
|
187
|
}
|
189
|
}
|
|
188
|
$this->param['project_id'] = $this->user['project_id'];
|
190
|
$this->param['project_id'] = $this->user['project_id'];
|