本次更新

1.domain 增加了几个字段,已经 backup,
2.视图模板,替换模板分组,替换模板 数据增加了seed 播种
3. 标记了TODO
This commit is contained in:
make
2025-04-05 20:41:47 +08:00
parent 25bf602048
commit 9945b6b137
52 changed files with 2675 additions and 255 deletions

View File

@@ -18,27 +18,39 @@ class ConverterMovel
'{strSiteDomain}' => '',
'{strSiteKeywords}' => '',
'{strSiteDescription}' => '',
'{strIndexTitle}' => '',
'{strIndexKeywords}' => '',
'{strIndexDescription}' => '',
'{strNovelName}' => '',
'{strNovelChapterName}' => '',
'{strNovelChapterSort}' => '',
'{strNovelCategoryName}' => '',
'{strNovelSex}' => '',
'{strNovelStatus}' => '',
'{intPage}' => '',
'{strNovelAuthor}' => '',
'{strNovelDescription}' => '',
'{strSearchKeywords}' => '',
];
static public $arrDescription = [
'{strSiteTitle}' => '这个是网站标题',
'{strSiteName}' => '这个是网站',
'{strSiteDomain}' => '这个是站点域名',
'{strSiteKeywords}' => '这个是网站关键字',
'{strSiteDescription}' => '这个是网站描述',
'{strNovelName}' => '这个是当前页面小说标题',
'{strIndexTitle}' => '这个是首页Title',
'{strIndexKeywords}' => '这个是首页Keywords',
'{strIndexDescription}' => '这个是首页Description',
'{strNovelName}' => '这个是当前页面小说描述',
'{strNovelChapterName}' => '当前页面小说章节名字',
'{strNovelChapterSort}' => '当前页面小说章节排序号',
'{strNovelCategoryName}' => '当前页面小说分类名字',
'{strNovelSex}' => '当前页面小说是男生还是女生 小说',
'{strNovelStatus}' => '当前页面小说状态 是连载还是完结',
'{intPage}' => '当前页面分页页码',
'{strNovelAuthor}' => '小说作者',
'{strNovelDescription}' => '小说简介',
'{strSearchKeywords}' => '搜索关键词',
];
static private function getKey($strKey): string
@@ -86,6 +98,8 @@ class ConverterMovel
*/
static public function convert(string $strSubject): string
{
$strSubject = str_replace(array_keys(self::$arrMap), array_values(self::$arrMap), $strSubject);
return str_replace(array_keys(self::$arrMap), array_values(self::$arrMap), $strSubject);
}
}

View File

@@ -60,7 +60,7 @@ class DomainModel extends BaseModel
public function getFomartSubject($strKey) //, $intNum = 1, $boolRand = false)
{
// echo $strKey;
// //exit;
// exit;
// echo '<pre>';
// var_dump($this->t_cfg);
// exit;