debug
This commit is contained in:
@@ -124,7 +124,7 @@ class TemplateSeeder
|
||||
'description' => '目录Description 替换模板分组ID',
|
||||
'sfg_id' => 15,
|
||||
'arrSubjectFomart' => [
|
||||
|
||||
|
||||
'{strSiteName}提供{strNovelName}章节目录免费查看,第{intPage}页包含最新{strNovelStatus}章节,{strNovelAuthor}创作,畅享{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
@@ -173,7 +173,7 @@ class TemplateSeeder
|
||||
'{strSiteName}提供小说排行榜,第{intPage}页精选热门小说免费阅读,最新排行一览无余,畅享{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
|
||||
|
||||
'NOVEL@GETSEARCHNOVEL@TITLE' => [
|
||||
'description' => '搜索页Title 替换模板分组ID',
|
||||
'sfg_id' => 22,
|
||||
@@ -226,17 +226,13 @@ class TemplateSeeder
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL' => [
|
||||
'description' => '小说详情URL 替换模板分组ID',
|
||||
'description' => '小说详情URL 模板1',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo/{strPinYin}-{intNId}',
|
||||
// '/novel/{strPinYin}-{intNId}',
|
||||
// '/book/{strPinYin}-{intNId}',
|
||||
// '/xiaoshuo-{strPinYin}-{intNId}',
|
||||
// '/novel-{strPinYin}-{intNId}',
|
||||
// '/book-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
|
||||
'KAN_NOVEL_INFO_URL' => [
|
||||
'description' => 'kan小说详情URL 替换模板分组ID',
|
||||
'sfg_id' => 30,
|
||||
@@ -297,6 +293,301 @@ class TemplateSeeder
|
||||
],
|
||||
];
|
||||
|
||||
// 公共的替换模板分组
|
||||
$arrPublicSubjectFomartGroupData = [
|
||||
// URL
|
||||
// 分类书库URL url
|
||||
'CATEGORY_INFO_URL_T2' => [
|
||||
'description' => '分类书库URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/books/{strGender}/{strCategory}/{strStatus}/page{intPage}',
|
||||
]
|
||||
],
|
||||
'CATEGORY_INFO_URL_T3' => [
|
||||
'description' => '分类书库URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/library/{strGender}/{strCategory}/{strStatus}/page{intPage}',
|
||||
]
|
||||
],
|
||||
'CATEGORY_INFO_URL_T4' => [
|
||||
'description' => '分类书库URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/fenlei/{strGender}/{strCategory}/{strStatus}/page{intPage}',
|
||||
]
|
||||
],
|
||||
'CATEGORY_INFO_URL_T5' => [
|
||||
'description' => '分类书库URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/class/{strGender}/{strCategory}/{strStatus}/page{intPage}',
|
||||
]
|
||||
],
|
||||
'CATEGORY_INFO_URL_T6' => [
|
||||
'description' => '分类书库URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/category/{strGender}/{strCategory}/{strStatus}/page{intPage}',
|
||||
]
|
||||
],
|
||||
|
||||
// 男生小说频道URL 模板1
|
||||
'NAN_SHENG_URL_T2' => [
|
||||
'description' => '男生小说频道URL 模板2',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/boys-novel'
|
||||
]
|
||||
],
|
||||
'NAN_SHENG_URL_T3' => [
|
||||
'description' => '男生小说频道URL 模板3',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/nansheng-shu'
|
||||
]
|
||||
],
|
||||
'NAN_SHENG_URL_T4' => [
|
||||
'description' => '男生小说频道URL 模板4',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/man-read'
|
||||
]
|
||||
],
|
||||
'NAN_SHENG_URL_T5' => [
|
||||
'description' => '男生小说频道URL 模板5',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/nansheng-book'
|
||||
]
|
||||
],
|
||||
'NAN_SHENG_URL_T6' => [
|
||||
'description' => '男生小说频道URL 模板6',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/male-novels'
|
||||
]
|
||||
],
|
||||
|
||||
'NV_SHENG_URL' => [
|
||||
'description' => '女生URL 替换模板分组ID',
|
||||
'sfg_id' => 27,
|
||||
'arrSubjectFomart' => [
|
||||
'/nvsheng-xiaoshuo',
|
||||
]
|
||||
],
|
||||
'RANK_INFO_URL' => [
|
||||
'description' => '排行榜URL 替换模板分组ID',
|
||||
'sfg_id' => 28,
|
||||
'arrSubjectFomart' => [
|
||||
'/paihang/all',
|
||||
]
|
||||
],
|
||||
|
||||
// 小说详情 url
|
||||
'NOVEL_INFO_URL_T2' => [
|
||||
'description' => '小说详情URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel/{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL_T3' => [
|
||||
'description' => '小说详情URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book/{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL_T4' => [
|
||||
'description' => '小说详情URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL_T5' => [
|
||||
'description' => '小说详情URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL_T6' => [
|
||||
'description' => '小说详情URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
|
||||
// 伪小说详情 url
|
||||
'KAN_NOVEL_INFO_URL_T2' => [
|
||||
'description' => '伪小说详情URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-novel/{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'KAN_NOVEL_INFO_URL_T3' => [
|
||||
'description' => '伪小说详情URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-book/{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'KAN_NOVEL_INFO_URL_T4' => [
|
||||
'description' => '伪小说详情URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-xiaoshuo-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'KAN_NOVEL_INFO_URL_T5' => [
|
||||
'description' => '伪小说详情URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-novel-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'KAN_NOVEL_INFO_URL_T6' => [
|
||||
'description' => '伪小说详情URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-book-{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
|
||||
// 小说详情目录 url
|
||||
'TABLE_INFO_URL_T2' => [
|
||||
'description' => '小说目录URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel/{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
'TABLE_INFO_URL_T3' => [
|
||||
'description' => '小说目录URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book/{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
'TABLE_INFO_URL_T4' => [
|
||||
'description' => '小说目录URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo-{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
'TABLE_INFO_URL_T5' => [
|
||||
'description' => '小说目录URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel-{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
'TABLE_INFO_URL_T6' => [
|
||||
'description' => '小说目录URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book-{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
|
||||
// 小说章节 url
|
||||
'CONTENT_INFO_T2' => [
|
||||
'description' => '内容章节URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel/{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
'CONTENT_INFO_T3' => [
|
||||
'description' => '内容章节URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book/{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
'CONTENT_INFO_T4' => [
|
||||
'description' => '内容章节URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo-{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
'CONTENT_INFO_T5' => [
|
||||
'description' => '内容章节URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel-{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
'CONTENT_INFO_T6' => [
|
||||
'description' => '内容章节URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book-{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
|
||||
/**
|
||||
* 小说最新内容 url
|
||||
* '/xiaoshuo/{strPinYin}-{intNId}/chapter/latest',
|
||||
* '/novel/{strPinYin}-{intNId}/chapter/latest',
|
||||
* '/book/{strPinYin}-{intNId}/chapter/latest',
|
||||
* '/xiaoshuo-{strPinYin}-{intNId}/chapter/latest',
|
||||
* '/novel-{strPinYin}-{intNId}/chapter/latest',
|
||||
* '/book-{strPinYin}-{intNId}/chapter/latest',
|
||||
*/
|
||||
'NEWS_CONTENT_INFO_T2' => [
|
||||
'description' => '最新内容章节URL 模板2',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel/{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
'NEWS_CONTENT_INFO_T3' => [
|
||||
'description' => '最新内容章节URL 模板3',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book/{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
'NEWS_CONTENT_INFO_T4' => [
|
||||
'description' => '最新内容章节URL 模板4',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo-{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
'NEWS_CONTENT_INFO_T5' => [
|
||||
'description' => '最新内容章节URL 模板5',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/novel-{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
'NEWS_CONTENT_INFO_T6' => [
|
||||
'description' => '最新内容章节URL 模板6',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/book-{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
|
||||
|
||||
'SEARCH_INFO_URL' => [
|
||||
'description' => '搜索页URL 替换模板分组ID',
|
||||
'sfg_id' => 34,
|
||||
'arrSubjectFomart' => [
|
||||
'/search.html?keywords={strSearchKeywords}&page={intPage}',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* 视图模板 数据播种
|
||||
*/
|
||||
@@ -337,7 +628,7 @@ class TemplateSeeder
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
/**
|
||||
* 站点列表 数据播种
|
||||
*/
|
||||
$arrSiteData = [
|
||||
@@ -369,13 +660,12 @@ class TemplateSeeder
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
|
||||
self::initTemplate($arrTemplateData);
|
||||
|
||||
self::initSubjectFomartGroup($arrSubjectFomartGroupData);
|
||||
|
||||
self::initSite($arrSiteData);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -432,9 +722,8 @@ class TemplateSeeder
|
||||
// 如果记录存在,更新记录
|
||||
$SubjectFomartModel->where('sf_id', $SubjectFomartModel->sf_id)->update($SubjectFomartItem);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
if (empty($SubjectFomartGroupModel)) {
|
||||
SubjectFomartGroupModel::insert($SubjectFomartGroupItem);
|
||||
} else {
|
||||
@@ -456,7 +745,7 @@ class TemplateSeeder
|
||||
{
|
||||
foreach ($arrSiteData as $arrSite) {
|
||||
$SiteModel = DomainModel::where('d_id', $arrSite['d_id'])->find();
|
||||
|
||||
|
||||
if (empty($SiteModel)) {
|
||||
DomainModel::insert($arrSite);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user