debug
This commit is contained in:
@@ -13,549 +13,97 @@ class TemplateSeeder
|
||||
{
|
||||
|
||||
$strInitDataFilePath = public_path('initdata');
|
||||
|
||||
/**
|
||||
* 公共替换模板分组 基础数据播种
|
||||
* 公共数据
|
||||
*/
|
||||
$arrPublicSubjectFomartGroupData = [];
|
||||
|
||||
/**
|
||||
* 小说替换模板分组 基础数据播种
|
||||
*/
|
||||
$arrNovelSubjectFomartGroupData = include $strInitDataFilePath . '/novel/baseSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 小说替换模板分组 - url - 补充数据
|
||||
*/
|
||||
$arrNovelUrlSubjectFomartGroupData = include $strInitDataFilePath . '/novel/urlSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 小说替换模板分组 - tkd - 补充数据
|
||||
*/
|
||||
$arrNovelTkdSubjectFomartGroupData = include $strInitDataFilePath . '/novel/tkdSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 小说视图模板 数据播种
|
||||
*/
|
||||
$arrNovelTemplateData = include $strInitDataFilePath . '/novel/viewTemplate.php';
|
||||
|
||||
/**
|
||||
* 小说站点列表 数据播种
|
||||
*/
|
||||
$arrNovelSiteData = include $strInitDataFilePath . '/novel/siteData.php';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 视频替换模板分组 基础数据播种
|
||||
*/
|
||||
$arrVideoSubjectFomartGroupData = include $strInitDataFilePath . '/video/baseSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 视频替换模板分组 - url - 补充数据
|
||||
*/
|
||||
$arrVideoUrlSubjectFomartGroupData = include $strInitDataFilePath . '/video/urlSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 视频替换模板分组 - tkd - 补充数据
|
||||
*/
|
||||
$arrVideoTkdSubjectFomartGroupData = include $strInitDataFilePath . '/video/tkdSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 视频视图模板 数据播种
|
||||
*/
|
||||
$arrVideoTemplateData = include $strInitDataFilePath . '/video/viewTemplate.php';
|
||||
|
||||
/**
|
||||
* 替换模板分组 - url - 补充数据
|
||||
* 视频站点列表 数据播种
|
||||
*/
|
||||
$arrUrlSubjectFomartGroupData = include $strInitDataFilePath . '/novel/urlSubjectFomartGroup.php';
|
||||
$arrVideoSiteData = include $strInitDataFilePath . '/video/siteData.php';
|
||||
|
||||
/**
|
||||
* 替换模板分组 - tkd - 补充数据
|
||||
*/
|
||||
$arrTkdSubjectFomartGroupData = include $strInitDataFilePath . '/novel/tkdSubjectFomartGroup.php';
|
||||
|
||||
/**
|
||||
* 替换模板分组 基础数据播种
|
||||
* 狂雨模板
|
||||
*/
|
||||
$arrSubjectFomartGroupData = [
|
||||
// TKD
|
||||
'INDEX@INDEX@TITLE' => [
|
||||
'description' => '首页Title 模板分组',
|
||||
'sfg_id' => 1,
|
||||
'arrSubjectFomart' => [
|
||||
'{strIndexTitle}',
|
||||
]
|
||||
],
|
||||
'INDEX@INDEX@KEYWORDS' => [
|
||||
'description' => '首页Keywords 模板分组',
|
||||
'sfg_id' => 2,
|
||||
'arrSubjectFomart' => [
|
||||
'{strIndexKeywords}',
|
||||
]
|
||||
],
|
||||
'INDEX@INDEX@DESCRIPTION' => [
|
||||
'description' => '首页Description 模板分组',
|
||||
'sfg_id' => 3,
|
||||
'arrSubjectFomart' => [
|
||||
'{strIndexDescription}',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETLIBRARY@TITLE' => [
|
||||
'description' => '分类书库Title 模板分组',
|
||||
'sfg_id' => 4,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelSex}{strNovelCategoryName}{strNovelStatus}小说 - {strSiteName} - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETLIBRARY@KEYWORDS' => [
|
||||
'description' => '分类书库Keywords 模板分组',
|
||||
'sfg_id' => 5,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelCategoryName}小说, {strNovelSex}小说, {strNovelStatus}小说, {strSiteName}, 免费小说, 在线阅读',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETLIBRARY@DESCRIPTION' => [
|
||||
'description' => '分类书库Description 模板分组',
|
||||
'sfg_id' => 6,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSiteName}提供{strNovelSex}{strNovelCategoryName}{strNovelStatus}小说免费在线阅读,第{intPage}页精选热门作品,畅享{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETNOVELCHANNEL@TITLE' => [
|
||||
'description' => '男女生Title 模板分组',
|
||||
'sfg_id' => 7,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelSex}小说 - {strSiteName} - 免费阅读 - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCHANNEL@KEYWORDS' => [
|
||||
'description' => '男女生Keywords 模板分组',
|
||||
'sfg_id' => 8,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelSex}小说 - {strSiteKeywords} - 免费阅读 - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCHANNEL@DESCRIPTION' => [
|
||||
'description' => '男女生Description 模板分组',
|
||||
'sfg_id' => 9,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelSex}小说 - {strSiteName} - 免费阅读 - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETNOVELINFO@TITLE' => [
|
||||
'description' => '详情Title 模板分组',
|
||||
'sfg_id' => 10,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName} - {strNovelAuthor}- {strNovelCategoryName} - 免费在线阅读 - {strSiteName}',
|
||||
]
|
||||
|
||||
],
|
||||
'NOVEL@GETNOVELINFO@KEYWORDS' => [
|
||||
'description' => '详情Keywords 模板分组',
|
||||
'sfg_id' => 11,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName}, {strNovelAuthor}, {strNovelCategoryName}, {strNovelSex}小说, {strNovelStatus}小说, {strSiteName}, 免费阅读',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELINFO@DESCRIPTION' => [
|
||||
'description' => '详情Description 模板分组',
|
||||
'sfg_id' => 12,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSiteName}提供{strNovelName}免费在线阅读,{strNovelAuthor}创作的{strNovelCategoryName}{strNovelStatus}小说,{strNovelDescription},欢迎体验{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETNOVELCATALOG@TITLE' => [
|
||||
'description' => '目录Title 模板分组',
|
||||
'sfg_id' => 13,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName}章节目录 - {strNovelAuthor} - 免费查看 - {strSiteName} 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCATALOG@KEYWORDS' => [
|
||||
'description' => '目录Keywords 模板分组',
|
||||
'sfg_id' => 14,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName}, 章节目录, {strNovelAuthor}, {strNovelCategoryName}, 免费阅读,{strNovelSex}小说, {strSiteKeywords}, {strSiteName}',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCATALOG@DESCRIPTION' => [
|
||||
'description' => '目录Description 模板分组',
|
||||
'sfg_id' => 15,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSiteName}提供{strNovelName}章节目录免费查看,第{intPage}页包含最新{strNovelStatus}章节,{strNovelAuthor}创作,畅享{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETNOVELCHAPTER@TITLE' => [
|
||||
'description' => '内容Title 模板分组',
|
||||
'sfg_id' => 16,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName} {strNovelChapterName} - {strNovelAuthor} - 免费阅读 - {strSiteName}',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCHAPTER@KEYWORDS' => [
|
||||
'description' => '内容Keywords 模板分组',
|
||||
'sfg_id' => 17,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName}, {strNovelChapterName}, {strNovelAuthor}, {strSiteKeywords}, 免费阅读, {strSiteName}',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELCHAPTER@DESCRIPTION' => [
|
||||
'description' => '内容Description 模板分组',
|
||||
'sfg_id' => 18,
|
||||
'arrSubjectFomart' => [
|
||||
'{strNovelName}{strNovelChapterName}免费在线阅读,{strNovelAuthor}著。{strChapterDescription},快来{strSiteName}畅读精彩章节!',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETNOVELRANK@TITLE' => [
|
||||
'description' => '排行榜Title 模板分组',
|
||||
'sfg_id' => 19,
|
||||
'arrSubjectFomart' => [
|
||||
'小说排行榜 - {strSiteName} - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELRANK@KEYWORDS' => [
|
||||
'description' => '排行榜Keywords 模板分组',
|
||||
'sfg_id' => 20,
|
||||
'arrSubjectFomart' => [
|
||||
'小说排行榜, 热门小说, 小说推荐, {strSiteKeywords}, {strSiteName}, 免费阅读',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETNOVELRANK@DESCRIPTION' => [
|
||||
'description' => '排行榜Description 模板分组',
|
||||
'sfg_id' => 21,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSiteName}提供小说排行榜,第{intPage}页精选热门小说免费阅读,最新排行一览无余,畅享{strSiteDomain}!',
|
||||
]
|
||||
],
|
||||
|
||||
'NOVEL@GETSEARCHNOVEL@TITLE' => [
|
||||
'description' => '搜索页Title 模板分组',
|
||||
'sfg_id' => 22,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSearchKeywords} - {strSiteName}搜索 - 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETSEARCHNOVEL@KEYWORDS' => [
|
||||
'description' => '搜索页Keywords 模板分组',
|
||||
'sfg_id' => 23,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSearchKeywords}, {strSiteName}, 免费阅读, 在线搜索, 第{intPage}页',
|
||||
]
|
||||
],
|
||||
'NOVEL@GETSEARCHNOVEL@DESCRIPTION' => [
|
||||
'description' => '搜索页Description 模板分组',
|
||||
'sfg_id' => 24,
|
||||
'arrSubjectFomart' => [
|
||||
'{strSearchKeywords}搜索结果尽在{strSiteName},第{intPage}页提供免费阅读,访问{strSiteDomain}立即体验!',
|
||||
]
|
||||
],
|
||||
|
||||
// URL
|
||||
'CATEGORY_INFO_URL' => [
|
||||
'description' => '分类书库URL 模板1',
|
||||
'sfg_id' => 25,
|
||||
'arrSubjectFomart' => [
|
||||
'/shuku/{strGender}/{strCategory}/{strStatus}/{strOrder}/page{intPage}',
|
||||
]
|
||||
],
|
||||
'NAN_SHENG_URL' => [
|
||||
'description' => '男生URL 模板1',
|
||||
'sfg_id' => 26,
|
||||
'arrSubjectFomart' => [
|
||||
'/nansheng-xiaoshuo',
|
||||
]
|
||||
],
|
||||
'NV_SHENG_URL' => [
|
||||
'description' => '女生URL 模板1',
|
||||
'sfg_id' => 27,
|
||||
'arrSubjectFomart' => [
|
||||
'/nvsheng-xiaoshuo',
|
||||
]
|
||||
],
|
||||
'RANK_INFO_URL' => [
|
||||
'description' => '排行榜URL 模板1',
|
||||
'sfg_id' => 28,
|
||||
'arrSubjectFomart' => [
|
||||
'/paihang/all',
|
||||
]
|
||||
],
|
||||
'NOVEL_INFO_URL' => [
|
||||
'description' => '小说详情URL 模板1',
|
||||
'sfg_id' => 29,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo/{strPinYin}-{intNId}',
|
||||
]
|
||||
],
|
||||
'KAN_NOVEL_INFO_URL' => [
|
||||
'description' => 'kan小说详情URL 模板1',
|
||||
'sfg_id' => 30,
|
||||
'arrSubjectFomart' => [
|
||||
'/kan-xiaoshuo/{strPinYin}-{intNId}-{intNForgeId}',
|
||||
]
|
||||
],
|
||||
'NOVEL_CATALOG_URL' => [
|
||||
'description' => '小说目录URL 模板1',
|
||||
'sfg_id' => 31,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo/{strPinYin}-{intNId}/mulu/{strOrder}/{intPage}',
|
||||
]
|
||||
],
|
||||
'CONTENT_INFO_URL' => [
|
||||
'description' => '内容章节URL 模板1',
|
||||
'sfg_id' => 32,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo/{strPinYin}-{intNId}/zhang-{intChapterSort}/{intChapterPage}',
|
||||
]
|
||||
],
|
||||
'NEWS_CONTENT_INFO_URL' => [
|
||||
'description' => '最新章节特殊页URL 模板1',
|
||||
'sfg_id' => 33,
|
||||
'arrSubjectFomart' => [
|
||||
'/xiaoshuo/{strPinYin}-{intNId}/chapter/latest',
|
||||
]
|
||||
],
|
||||
'SEARCH_INFO_URL' => [
|
||||
'description' => '搜索页URL 模板1',
|
||||
'sfg_id' => 34,
|
||||
'arrSubjectFomart' => [
|
||||
'/search.html?keyword={strSearchKeywords}&page={intPage}',
|
||||
]
|
||||
],
|
||||
'HISTORY_INFO_URL' => [
|
||||
'description' => '历史记录URL 模板1',
|
||||
'sfg_id' => 89,
|
||||
'arrSubjectFomart' => [
|
||||
'/history',
|
||||
]
|
||||
],
|
||||
'SHUJIA_INFO_URL' => [
|
||||
'description' => '书架URL 模板1',
|
||||
'sfg_id' => 90,
|
||||
'arrSubjectFomart' => [
|
||||
'/bookshelf',
|
||||
]
|
||||
],
|
||||
'USER_INFO_URL' => [
|
||||
'description' => '用户中心URL 模板1',
|
||||
'sfg_id' => 91,
|
||||
'arrSubjectFomart' => [
|
||||
'/user',
|
||||
]
|
||||
],
|
||||
'PC_URL_PATH' => [
|
||||
'description' => 'pc端URL目录 模板',
|
||||
'sfg_id' => 107,
|
||||
'arrSubjectFomart' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian']
|
||||
],
|
||||
'CATEGORY_INDEX_URL' => [
|
||||
'description' => '书库首页URL 模板1',
|
||||
'sfg_id' => 108,
|
||||
'arrSubjectFomart' => ['/shuku/index',]
|
||||
],
|
||||
'SEARCH_INDEX_URL' => [
|
||||
'description' => '搜索首页URL 模板1',
|
||||
'sfg_id' => 114,
|
||||
'arrSubjectFomart' => [
|
||||
'/search.html',
|
||||
]
|
||||
],
|
||||
'RANK_LIST_URL' => [
|
||||
'description' => '排行榜列表URL 模板1',
|
||||
'sfg_id' => 120,
|
||||
'arrSubjectFomart' => [
|
||||
'/paihang/{strGender}/{strCategory}/{strStatus}/{strOrder}/page{intPage}',
|
||||
]
|
||||
],
|
||||
|
||||
'VIDEO_CATEGORY_INDEX_URL' => [
|
||||
'description' => '视频分类首页URL 模板1',
|
||||
'sfg_id' => 126,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodtype/{strCategory}',
|
||||
]
|
||||
],
|
||||
'VIDEO_CATEGORY_URL' => [
|
||||
'description' => '视频分类列表URL 模板1',
|
||||
'sfg_id' => 127,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodtype-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strSort}-page{intPage}',
|
||||
]
|
||||
],
|
||||
'VIDEO_INFO_URL' => [
|
||||
'description' => '视频详情URL 模板1',
|
||||
'sfg_id' => 128,
|
||||
'arrSubjectFomart' => [
|
||||
'/voddetail/{strVideoPinyin}-{intVideoId}',
|
||||
]
|
||||
],
|
||||
'VIDEO_PLAY_URL' => [
|
||||
'description' => '视频播放URL 模板1',
|
||||
'sfg_id' => 129,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodplay/{strVideoPinyin}-{intVideoId}-{strPlayType}-{intPlayIndex}'
|
||||
]
|
||||
],
|
||||
|
||||
|
||||
// SEO 丰富内容
|
||||
'INDEX_POPULAR_NOVELS' => [
|
||||
'description' => '首页热门小说介绍 模板分组',
|
||||
'sfg_id' => 35,
|
||||
'arrSubjectFomart' => [
|
||||
'精选全网热评佳作,涵盖玄幻冒险、都市传奇、穿越重生等多种类型,带你领略最受欢迎的阅读热潮,快来发现你的下一本心动之作!',
|
||||
]
|
||||
],
|
||||
'INDEX_NEWS_NOVELS' => [
|
||||
'description' => '首页最新小说介绍 模板分组',
|
||||
'sfg_id' => 37,
|
||||
'arrSubjectFomart' => [
|
||||
'每日更新最新章节,囊括玄幻修真、都市爽文、重生逆袭等热门题材,紧跟作者步伐,第一时间畅读新鲜故事!',
|
||||
]
|
||||
],
|
||||
'INDEX_RANK_NOVELS' => [
|
||||
'description' => '首页小说排行榜介绍 模板分组',
|
||||
'sfg_id' => 38,
|
||||
'arrSubjectFomart' => [
|
||||
'汇聚读者最爱的小说排行,日榜、周榜、月榜一网打尽,玄幻巅峰、都市热血、完结经典全都有,助你快速找到高人气好书!',
|
||||
]
|
||||
],
|
||||
|
||||
// 最新替换模板分组id 125
|
||||
];
|
||||
|
||||
/**
|
||||
* 替换模板分组 基础数据播种
|
||||
* 视频模板
|
||||
*/
|
||||
$arrVideoSubjectFomartGroupData = [
|
||||
'VIDEO_CATEGORY_INDEX_URL' => [
|
||||
'description' => '视频分类首页URL 模板1',
|
||||
'sfg_id' => 126,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodtype/{strCategory}',
|
||||
]
|
||||
],
|
||||
'VIDEO_CATEGORY_URL' => [
|
||||
'description' => '视频分类列表URL 模板1',
|
||||
'sfg_id' => 127,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodtype-{strCategory}/{strClass}-{strArea}-{strLang}-{strYear}-{strSort}-page{intPage}',
|
||||
]
|
||||
],
|
||||
'VIDEO_INFO_URL' => [
|
||||
'description' => '视频详情URL 模板1',
|
||||
'sfg_id' => 128,
|
||||
'arrSubjectFomart' => [
|
||||
'/voddetail/{strVideoPinyin}-{intVideoId}',
|
||||
]
|
||||
],
|
||||
'VIDEO_PLAY_URL' => [
|
||||
'description' => '视频播放URL 模板1',
|
||||
'sfg_id' => 129,
|
||||
'arrSubjectFomart' => [
|
||||
'/vodplay/{strVideoPinyin}-{intVideoId}-{strPlayType}-{intPlayIndex}'
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 视图模板 数据播种
|
||||
*/
|
||||
$arrTemplateData = [
|
||||
[
|
||||
't_id' => 1,
|
||||
't_default' => 1,
|
||||
't_code' => 'default',
|
||||
't_path' => '/app/home/view/default/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
't_id' => 2,
|
||||
't_default' => 0,
|
||||
't_code' => 'kuangYu',
|
||||
't_path' => '/app/home/view/kuangYu/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
't_id' => 3,
|
||||
't_default' => 0,
|
||||
't_code' => 'shikong',
|
||||
't_path' => '/app/home/view/shikong/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
't_id' => 4,
|
||||
't_default' => 0,
|
||||
't_code' => 'haoZi',
|
||||
't_path' => '/app/home/view/haoZi/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
't_id' => 5,
|
||||
't_default' => 0,
|
||||
't_code' => 'xiongMao',
|
||||
't_path' => '/app/home/view/xiongMao/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
't_id' => 6,
|
||||
't_default' => 0,
|
||||
't_code' => 'videoDadi',
|
||||
't_path' => '/app/home/view/videoDadi/',
|
||||
't_cfg_template' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
|
||||
/**
|
||||
* 站点列表 数据播种
|
||||
*/
|
||||
$arrSiteData = [
|
||||
[
|
||||
'd_id' => 1,
|
||||
'd_domain' => 'seo.com',
|
||||
'd_name' => '狂雨小说',
|
||||
't_id' => '1',
|
||||
'd_keywords' => '狂雨小说',
|
||||
'd_description' => '欢迎来到狂雨小说 - 您的免费小说阅读天堂!这里汇聚了玄幻修真、穿越重生、都市热血、言情甜宠等多种热门小说类型,无论您是喜欢热血激战的主角成长故事,还是钟情于逆袭人生的穿越传奇,亦或是沉浸于都市生活的浪漫情缘,狂雨小说都能满足您的阅读渴望。我们每日更新最新章节,确保您第一时间追更心仪作品;更有小说排行榜精选全网热评佳作,从日榜到完结榜,助您轻松找到高人气好书。无需注册,免费畅读,狂雨小说致力于为您打造极致阅读体验,快来加入我们,开启属于您的故事冒险之旅吧!',
|
||||
'd_index_title' => '狂雨小说 - 免费在线阅读热门玄幻、穿越、都市小说',
|
||||
'd_index_keywords' => '狂雨小说, 小说在线阅读, 玄幻小说, 穿越小说, 热门小说排行榜',
|
||||
'd_index_description' => '狂雨小说提供免费在线阅读,涵盖玄幻、穿越、都市等热门小说,最新排行榜每日更新,尽享阅读乐趣!',
|
||||
'd_text_logo' => '热门小说阅读平台',
|
||||
't_cfg' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
'd_id' => 2,
|
||||
'd_domain' => 'novel2.com',
|
||||
'd_name' => '狂雨小说',
|
||||
't_id' => '2',
|
||||
'd_keywords' => '狂雨小说',
|
||||
'd_description' => '欢迎来到狂雨小说 - 您的免费小说阅读天堂!这里汇聚了玄幻修真、穿越重生、都市热血、言情甜宠等多种热门小说类型,无论您是喜欢热血激战的主角成长故事,还是钟情于逆袭人生的穿越传奇,亦或是沉浸于都市生活的浪漫情缘,狂雨小说都能满足您的阅读渴望。我们每日更新最新章节,确保您第一时间追更心仪作品;更有小说排行榜精选全网热评佳作,从日榜到完结榜,助您轻松找到高人气好书。无需注册,免费畅读,狂雨小说致力于为您打造极致阅读体验,快来加入我们,开启属于您的故事冒险之旅吧!',
|
||||
'd_index_title' => '狂雨小说 - 免费在线阅读热门玄幻、穿越、都市小说',
|
||||
'd_index_keywords' => '狂雨小说, 小说在线阅读, 玄幻小说, 穿越小说, 热门小说排行榜',
|
||||
'd_index_description' => '狂雨小说提供免费在线阅读,涵盖玄幻、穿越、都市等热门小说,最新排行榜每日更新,尽享阅读乐趣!',
|
||||
'd_text_logo' => '热门小说阅读平台',
|
||||
't_cfg' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
'd_id' => 3,
|
||||
'd_domain' => 'novel3.com',
|
||||
'd_name' => '时空小说',
|
||||
't_id' => '3',
|
||||
'd_keywords' => '狂雨小说',
|
||||
'd_description' => '欢迎来到狂雨小说 - 您的免费小说阅读天堂!这里汇聚了玄幻修真、穿越重生、都市热血、言情甜宠等多种热门小说类型,无论您是喜欢热血激战的主角成长故事,还是钟情于逆袭人生的穿越传奇,亦或是沉浸于都市生活的浪漫情缘,狂雨小说都能满足您的阅读渴望。我们每日更新最新章节,确保您第一时间追更心仪作品;更有小说排行榜精选全网热评佳作,从日榜到完结榜,助您轻松找到高人气好书。无需注册,免费畅读,狂雨小说致力于为您打造极致阅读体验,快来加入我们,开启属于您的故事冒险之旅吧!',
|
||||
'd_index_title' => '狂雨小说 - 免费在线阅读热门玄幻、穿越、都市小说',
|
||||
'd_index_keywords' => '狂雨小说, 小说在线阅读, 玄幻小说, 穿越小说, 热门小说排行榜',
|
||||
'd_index_description' => '狂雨小说提供免费在线阅读,涵盖玄幻、穿越、都市等热门小说,最新排行榜每日更新,尽享阅读乐趣!',
|
||||
'd_text_logo' => '热门小说阅读平台',
|
||||
't_cfg' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
'd_id' => 4,
|
||||
'd_domain' => 'novel4.com',
|
||||
'd_name' => '耗子小说',
|
||||
't_id' => '4',
|
||||
'd_keywords' => '狂雨小说',
|
||||
'd_description' => '欢迎来到狂雨小说 - 您的免费小说阅读天堂!这里汇聚了玄幻修真、穿越重生、都市热血、言情甜宠等多种热门小说类型,无论您是喜欢热血激战的主角成长故事,还是钟情于逆袭人生的穿越传奇,亦或是沉浸于都市生活的浪漫情缘,狂雨小说都能满足您的阅读渴望。我们每日更新最新章节,确保您第一时间追更心仪作品;更有小说排行榜精选全网热评佳作,从日榜到完结榜,助您轻松找到高人气好书。无需注册,免费畅读,狂雨小说致力于为您打造极致阅读体验,快来加入我们,开启属于您的故事冒险之旅吧!',
|
||||
'd_index_title' => '狂雨小说 - 免费在线阅读热门玄幻、穿越、都市小说',
|
||||
'd_index_keywords' => '狂雨小说, 小说在线阅读, 玄幻小说, 穿越小说, 热门小说排行榜',
|
||||
'd_index_description' => '狂雨小说提供免费在线阅读,涵盖玄幻、穿越、都市等热门小说,最新排行榜每日更新,尽享阅读乐趣!',
|
||||
'd_text_logo' => '热门小说阅读平台',
|
||||
't_cfg' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
[
|
||||
'd_id' => 5,
|
||||
'd_domain' => 'novel5.com',
|
||||
'd_name' => '熊猫小说',
|
||||
't_id' => '5',
|
||||
'd_keywords' => '狂雨小说',
|
||||
'd_description' => '欢迎来到狂雨小说 - 您的免费小说阅读天堂!这里汇聚了玄幻修真、穿越重生、都市热血、言情甜宠等多种热门小说类型,无论您是喜欢热血激战的主角成长故事,还是钟情于逆袭人生的穿越传奇,亦或是沉浸于都市生活的浪漫情缘,狂雨小说都能满足您的阅读渴望。我们每日更新最新章节,确保您第一时间追更心仪作品;更有小说排行榜精选全网热评佳作,从日榜到完结榜,助您轻松找到高人气好书。无需注册,免费畅读,狂雨小说致力于为您打造极致阅读体验,快来加入我们,开启属于您的故事冒险之旅吧!',
|
||||
'd_index_title' => '狂雨小说 - 免费在线阅读热门玄幻、穿越、都市小说',
|
||||
'd_index_keywords' => '狂雨小说, 小说在线阅读, 玄幻小说, 穿越小说, 热门小说排行榜',
|
||||
'd_index_description' => '狂雨小说提供免费在线阅读,涵盖玄幻、穿越、都市等热门小说,最新排行榜每日更新,尽享阅读乐趣!',
|
||||
'd_text_logo' => '热门小说阅读平台',
|
||||
't_cfg' => $arrSubjectFomartGroupData,
|
||||
],
|
||||
];
|
||||
|
||||
self::initTemplate($arrTemplateData);
|
||||
|
||||
self::initSubjectFomartGroup($arrSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrUrlSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrTkdSubjectFomartGroupData);
|
||||
|
||||
self::initSite($arrSiteData);
|
||||
if(config('app.default_app_type') == 'novel'){
|
||||
// 小说-则行
|
||||
self::initTemplate($arrNovelTemplateData,$arrNovelSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrNovelSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrNovelUrlSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrNovelTkdSubjectFomartGroupData);
|
||||
// 站点 - 本地开发调试测试使用
|
||||
self::initSite($arrNovelSiteData,$arrNovelSubjectFomartGroupData);
|
||||
}else{
|
||||
// 视频-则行
|
||||
self::initTemplate($arrVideoTemplateData,$arrVideoSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrVideoSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrVideoUrlSubjectFomartGroupData);
|
||||
self::initSubjectFomartGroup($arrVideoTkdSubjectFomartGroupData);
|
||||
// 站点 - 本地开发调试测试使用
|
||||
self::initSite($arrVideoSiteData,$arrVideoSubjectFomartGroupData);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 视图模板 数据播种
|
||||
*
|
||||
* @param [type] $arrTemplateData
|
||||
* @param array $arrTemplateData
|
||||
* @param array $arrSubjectFomartGroupData
|
||||
* @return void
|
||||
*/
|
||||
static public function initTemplate($arrTemplateData)
|
||||
static public function initTemplate(array $arrTemplateData, array $arrSubjectFomartGroupData)
|
||||
{
|
||||
foreach ($arrTemplateData as $arrTemplate) {
|
||||
$arrTemplate['t_cfg_template'] = $arrSubjectFomartGroupData;
|
||||
$TemplatesModel = TemplatesModel::where('t_id', $arrTemplate['t_id'])->find();
|
||||
foreach ($arrTemplate['t_cfg_template'] as $key => $arrCfgTemplate) {
|
||||
unset($arrTemplate['t_cfg_template'][$key]['arrSubjectFomart']);
|
||||
@@ -574,10 +122,10 @@ class TemplateSeeder
|
||||
/**
|
||||
* 替换模板分组/替换模板 数据播种
|
||||
*
|
||||
* @param [type] $arrTemplateData
|
||||
* @param array $arrSubjectFomartGroupData
|
||||
* @return void
|
||||
*/
|
||||
static public function initSubjectFomartGroup($arrSubjectFomartGroupData)
|
||||
static public function initSubjectFomartGroup(array $arrSubjectFomartGroupData)
|
||||
{
|
||||
foreach ($arrSubjectFomartGroupData as $SubjectFomartGroup) {
|
||||
$SubjectFomartGroupModel = SubjectFomartGroupModel::where('sfg_id', $SubjectFomartGroup['sfg_id'])->find();
|
||||
@@ -613,19 +161,18 @@ class TemplateSeeder
|
||||
/**
|
||||
* 站点列表 数据播种 --
|
||||
*
|
||||
* @param [type] $arrTemplateData
|
||||
* @param array $arrSiteData
|
||||
* @param array $arrSubjectFomartGroupData
|
||||
* @return void
|
||||
*/
|
||||
static public function initSite($arrSiteData)
|
||||
static public function initSite(array $arrSiteData, array $arrSubjectFomartGroupData)
|
||||
{
|
||||
foreach ($arrSiteData as $arrSite) {
|
||||
$SiteModel = DomainModel::where('d_id', $arrSite['d_id'])->find();
|
||||
|
||||
if (empty($SiteModel)) {
|
||||
$arrSite['t_cfg'] = $arrSubjectFomartGroupData;
|
||||
DomainModel::insert($arrSite);
|
||||
} else {
|
||||
// 如果记录存在,更新记录
|
||||
//$SiteModel->update($arrSite);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user