作者 lyh

gx数据

... ... @@ -13,6 +13,7 @@ use App\Models\Template\BTemplateLog;
use App\Models\Template\BTemplateMain;
use App\Models\Template\Setting;
use App\Models\Template\BTemplate;
use App\Models\Template\TemplateTypeMain;
class CustomTemplateLogic extends BaseLogic
{
... ... @@ -179,10 +180,11 @@ class CustomTemplateLogic extends BaseLogic
$this->fail('404页面已存在');
}
if($this->param['url'] == 'search'){
$bTemplateMainModel = new BTemplateMain();
$bTemplateMainModel = new TemplateTypeMain();
$mainInfo = $bTemplateMainModel->read(['type'=>8]);
if($mainInfo !== false){
$this->param['html'] = $mainInfo['main_html'];
$this->param['html_style'] = "<style id='globalsojs-styles'></style>";
}
}
$this->param['project_id'] = $this->user['project_id'];
... ...