gpttemp
This commit is contained in:
@@ -9,9 +9,11 @@ use app\model\VideoCategoryModel;
|
||||
use app\model\TemplatesModel;
|
||||
use app\model\CategoryModel;
|
||||
use app\model\ChapterModel;
|
||||
use app\model\SystemConfigModel;
|
||||
use app\model\NovelClicksModel;
|
||||
use app\model\NovelModel;
|
||||
use app\common\helper\SiteStyle;
|
||||
use app\common\helper\CssBuilder;
|
||||
use think\facade\Request;
|
||||
use think\facade\Config;
|
||||
use think\exception\HttpException;
|
||||
@@ -152,7 +154,6 @@ class SiteContext
|
||||
View::assign("strYouQingLiangJieTemp", $strYouQingLiangJieTemp);
|
||||
}
|
||||
|
||||
|
||||
// 视频站点需要信息
|
||||
// $strVideoCategoryIndexUrlTemp = $this->DomainModel->getFomartSubject('VIDEO_CATEGORY_INDEX_URL', '', false);
|
||||
// $strVideoSearchListUrlTemp = $this->DomainModel->getFomartSubject('VIDEO_SEARCH_LIST_URL', '', false);
|
||||
@@ -160,11 +161,28 @@ class SiteContext
|
||||
// View::assign("strVideoCategoryIndexUrlTemp", $strVideoCategoryIndexUrlTemp);
|
||||
// View::assign("strVideoSearchListUrlTemp", $strVideoSearchListUrlTemp);
|
||||
// View::assign("strVideoHistoryUrlTemp", $strVideoHistoryUrlTemp);
|
||||
|
||||
|
||||
// var_dump($this->DomainModel->t_cfg);
|
||||
$strEmail = SystemConfigModel::getValByCode('YOU_XIANG');
|
||||
// 1. 站点 DNA
|
||||
$TpStyle = SiteStyle::getConfig();
|
||||
|
||||
// 3. 构建本域名 CSS(合并并替换 __PFX__)
|
||||
$cssUrl = CssBuilder::build(
|
||||
$TpStyle['css_files'],
|
||||
$TpStyle['dom_prefix'],
|
||||
$TpStyle['static_hash']
|
||||
);
|
||||
|
||||
// 4. 模板变量注入
|
||||
View::assign('TpStyle', $TpStyle);
|
||||
|
||||
View::assign("TpTpl", $TpStyle['templates']);
|
||||
View::assign('TpCss', $cssUrl);
|
||||
View::assign('strEmail', $strEmail);
|
||||
|
||||
$vod_list = $this->DomainModel;
|
||||
View::assign('vod_list',$vod_list);
|
||||
|
||||
|
||||
View::assign('Request', $this->Request);
|
||||
View::assign('DomainModel', $this->DomainModel);
|
||||
View::assign('TemplatesModel', $this->TemplatesModel);
|
||||
|
||||
Reference in New Issue
Block a user