This commit is contained in:
Default
2025-03-29 11:56:41 +08:00
parent 79e30702c3
commit 5ca6ac27c7
4 changed files with 3115 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ class AutoSwitchViewModel
$DomainModel = DomainModel::getDomainByCache($strDomain);
$TemplatesModel = TemplatesModel::getValByCode($DomainModel->t_id);
$TemplatesModel = TemplatesModel::getTemplateOnCache($DomainModel->t_id);
$Request->DomainModel = $DomainModel;

View File

@@ -17,7 +17,7 @@ class TemplatesModel extends BaseModel
static $arrTemplates = [];
static public function getValByCode($intTId)
static public function getTemplateOnCache($intTId)
{
if (self::$arrTemplates == []) {
self::$arrTemplates = Cache::get('Templates');