diff --git a/code/app/admin/controller/Site.php b/code/app/admin/controller/Site.php index 3ef4978..cc28a91 100644 --- a/code/app/admin/controller/Site.php +++ b/code/app/admin/controller/Site.php @@ -157,6 +157,9 @@ class Site extends BaseController "d_name" => $Request->post('d_name'), "d_keywords" => $Request->post('d_keywords'), "d_description" => $Request->post('d_description'), + "d_index_title" => $Request->post('d_index_title'), + "d_index_keywords" => $Request->post('d_index_keywords'), + "d_index_description" => $Request->post('d_index_description'), "d_statis" => $Request->post('d_statis'), "d_logo_type" => $Request->post('d_logo_type'), "d_text_log" => $Request->post('d_text_log'), @@ -341,7 +344,8 @@ class Site extends BaseController $this->validate($arrData, $arrRule); $arrSfgId = explode(',', $arrData['sfg_id']); - SubjectFomartGroupModel::where('sfg_id', $arrSfgId)->delete(); + + SubjectFomartGroupModel::whereIn('sfg_id', $arrSfgId)->delete(); return $this->success(); } @@ -458,7 +462,7 @@ class Site extends BaseController $this->validate($arrData, $arrRule); $arrSfId = explode(',', $arrData['sf_id']); - SubjectFomartModel::where('sf_id', $arrSfId)->delete(); + SubjectFomartModel::whereIn('sf_id', $arrSfId)->delete(); return $this->success(); } diff --git a/code/app/home/BaseController.php b/code/app/home/BaseController.php index 176897f..650a39e 100644 --- a/code/app/home/BaseController.php +++ b/code/app/home/BaseController.php @@ -76,6 +76,7 @@ abstract class BaseController { ConverterMovel::setVal([ 'strSiteName' => $this->request->DomainModel->d_name, + 'strSiteDomain' => $this->request->DomainModel->d_domain, 'strSiteKeywords' => $this->request->DomainModel->d_keywords, 'strSiteDescription' => $this->request->DomainModel->d_description, ]); diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index 7e4ea5d..ccdea06 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -82,7 +82,7 @@ Route::get('/pc/books/:name-:n_id/chapter/latest', [Novel::class, 'getNovelLates /** * 小说目录页面 - * /xiaoshuo/[name]-[novel-id]/mulu/order/[page] + * /xiaoshuo/[小说拼音]-[小说id]/mulu/order/[page] */ Route::get('/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::class, 'getNovelChapterAll']) ->append(['boolIsMobile' => true, 'intUriType' => 1]) @@ -93,13 +93,13 @@ Route::get('/pc/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::c ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']); /** - * kan + * kan-小说详情 */ -Route::get('/pc/kan/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo']) +Route::get('/pc/kan-xiaoshuo/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo']) ->append(['boolIsMobile' => false, 'intUriType' => 2]) ->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]); -Route::get('/kan/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo']) +Route::get('/kan-xiaoshuo/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo']) ->append(['boolIsMobile' => true, 'intUriType' => 2]) ->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]); diff --git a/code/app/home/controller/Index.php b/code/app/home/controller/Index.php index c37f5aa..fdd4b6b 100644 --- a/code/app/home/controller/Index.php +++ b/code/app/home/controller/Index.php @@ -42,6 +42,21 @@ class Index extends BaseController $strStatus = '已完结'; $arrEndNovelRankNovel = $NovelModel->getRankNovelOnCache($strKey, 10, 0, 'total',$strStatus); + // Title 模板 + ConverterMovel::setVal([ + 'strIndexTitle' => $this->request->DomainModel->d_index_title, + 'strIndexKeywords' => $this->request->DomainModel->d_index_keywords, + 'strIndexDescription' => $this->request->DomainModel->d_index_description, + ]); + // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); + $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__).'@TITLE'); + $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__).'@KEYWORDS'); + $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__).'@DESCRIPTION'); + + + $strTitle = ConverterMovel::convert($strTitleTemplate); + $strKeywords = ConverterMovel::convert($strKeywordsTemplate); + $strDescription = ConverterMovel::convert($strDescriptionTemplate); View::assign([ 'arrRecommendNovel' => $arrRecommendNovel, @@ -50,7 +65,10 @@ class Index extends BaseController 'arrWeekRankNovel' => $arrWeekRankNovel, 'arrMoonRankNovel' => $arrMoonRankNovel, 'arrEndNovelRankNovel' => $arrEndNovelRankNovel, - 'strPageCode' => 'home' + 'strPageCode' => 'home', + 'strTitle' => $strTitle, + 'strKeywords' => $strKeywords, + 'strDescription' => $strDescription, ]); if ($boolIsMobile) { @@ -109,10 +127,20 @@ class Index extends BaseController // 最近更新-随机50 $arrNewsUpdateNovel = $NovelModel->getSexNovelOnCache($Request->DomainModel->d_domain, 50); - $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); - - $strTitle = ConverterMovel::convert($strTitle); + // Title 模板 + ConverterMovel::setVal([ + 'strIndexTitle' => $this->request->DomainModel->d_index_title, + 'strIndexKeywords' => $this->request->DomainModel->d_index_keywords, + 'strIndexDescription' => $this->request->DomainModel->d_index_description, + ]); + // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); + $strTitleTemplate = $Request->DomainModel->getFomartSubject('INDEX@INDEX@TITLE'); + $strKeywordsTemplate = $Request->DomainModel->getFomartSubject('INDEX@INDEX@KEYWORDS'); + $strDescriptionTemplate = $Request->DomainModel->getFomartSubject('INDEX@INDEX@DESCRIPTION'); + $strTitle = ConverterMovel::convert($strTitleTemplate); + $strKeywords = ConverterMovel::convert($strKeywordsTemplate); + $strDescription = ConverterMovel::convert($strDescriptionTemplate); View::assign([ 'arrNewsUpdateNovel' => $arrNewsUpdateNovel, @@ -129,6 +157,8 @@ class Index extends BaseController 'arrAdBanner' => [], 'strPageCode' => 'home', 'strTitle' => $strTitle, + 'strKeywords' => $strKeywords, + 'strDescription' => $strDescription, ]); diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 33ad8fa..b9e08f4 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -57,15 +57,29 @@ class Novel extends BaseController $strStatus = '已完结'; $arrEdnNovelRankNovel = $NovelModel->getRankNovelOnCache($strKey, 10, 0, 'total', $strStatus); + // Title 模板 + ConverterMovel::setVal([ + 'intPage' => 1, + ]); + // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); + $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); + $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS'); + $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION'); + + $strTitle = ConverterMovel::convert($strTitleTemplate); + $strKeywords = ConverterMovel::convert($strKeywordsTemplate); + $strDescription = ConverterMovel::convert($strDescriptionTemplate); View::assign([ 'arrDayRankNovel' => $arrDayRankNovel, 'arrWeekRankNovel' => $arrWeekRankNovel, - 'arrMoonRankNovel' => $arrMoonRankNovel, 'arrTotalRankNovel' => $arrTotalRankNovel, 'arrNewsNovelRankNovel' => $arrNewsNovelRankNovel, 'arrEdnNovelRankNovel' => $arrEdnNovelRankNovel, + 'strTitle' => $strTitle, + 'strKeywords' => $strKeywords, + 'strDescription' => $strDescription, 'strPageCode' => 'rank' ]); if ($boolIsMobile) { @@ -96,6 +110,11 @@ class Novel extends BaseController 'nansheng-xiaoshuo' => 1, 'nvsheng-xiaoshuo' => 1, ]; + $arrSexChinese = [ + 'all' => '', + 'nansheng-xiaoshuo' => '男生', + 'nvsheng-xiaoshuo' => '女生', + ]; if (!key_exists($strGender, $arrSex)) { return response('Bad Request', 400); @@ -105,7 +124,7 @@ class Novel extends BaseController // 分类 if ($strCategory == 'all') { - $strSearchCategory = NULL; + $strSearchCategory = ''; } else if (!in_array($strCategory, CategoryModel::$arrCategoryPinYin)) { return response('Bad Request', 400); } else { @@ -151,6 +170,25 @@ class Novel extends BaseController $strBaseUrl = sprintf('/shuku/%s/%s/%s/page{page}', $strGender, $strCategory, $strStatus); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum); + // TODO 下面的值要处理成汉字 start + // 更新值 + ConverterMovel::setVal([ + 'intPage' => $intPage, + 'strNovelSex' => $arrSexChinese[$strGender], //汉字 男生或者女生 + 'strNovelCategoryName' => str_replace("小说", "", $strSearchCategory), // 小说分类名汉字 玄幻 都市 。。。 ; 注意不要带 小说 2字,tkd 会重复堆叠 + 'strNovelStatus' => $strSearchStatus, // 小说状态 汉字 + ]); + // TODO end + + // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); + $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); + $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS'); + $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION'); + + $strTitle = ConverterMovel::convert($strTitleTemplate); + $strKeywords = ConverterMovel::convert($strKeywordsTemplate); + $strDescription = ConverterMovel::convert($strDescriptionTemplate); + View::assign([ 'arrNovel' => $arrPage['data'], 'strPageCode' => 'library', @@ -159,12 +197,15 @@ class Novel extends BaseController 'strStatus' => $strStatus, 'intPage' => $intPage, 'intTotalPage' => $arrPage['pages'], - // TODO 返回所有分类了,应该只返回对应 性别的分类,暂时按下面的返回了,你看看要咋处理 + // TODO 返回所有分类了,应该只返回对应 性别的分类,我暂时按下面的返回了,你看看需要改不 start // 'arrCategory' => array_combine(array_values(CategoryModel::$arrCategoryPinYin), array_values(CategoryModel::$arrCategory)), 'arrCategoryAll' => CategoryModel::$arrCategoryAll, - + // TODO end 'arrPaginator' => $arrPaginator, - + 'strTitle' => $strTitle, + 'strKeywords' => $strKeywords, + 'strDescription' => $strDescription, + ]); return View::fetch($strTemplate); @@ -224,12 +265,30 @@ class Novel extends BaseController $intCount = 20; $arrNewsUpdateNovel = $NovelModel->getCommonNovelOnCache($strKey, $intLifeTime, $intCount, $intType, NULL, ['og_novel_update_time' => -1]); + // 更新值 + ConverterMovel::setVal([ + 'intPage' => 1, + 'strNovelSex' => $strNovelChannel == 'boys' ? '男生' : '女生', //汉字 男生或者女生 + ]); + + // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__)); + $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); + $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS'); + $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION'); + + $strTitle = ConverterMovel::convert($strTitleTemplate); + $strKeywords = ConverterMovel::convert($strKeywordsTemplate); + $strDescription = ConverterMovel::convert($strDescriptionTemplate); + View::assign([ 'arrRecommendSerializationNovel' => $arrRecommendSerializationNovel, 'arrRecommendEndNovel' => $arrRecommendEndNovel, 'arrNewsUpdateNovel' => $arrNewsUpdateNovel, 'arrAdBanner' => [], - 'strPageCode' => $strNovelChannel + 'strPageCode' => $strNovelChannel, + 'strTitle' => $strTitle, + 'strKeywords' => $strKeywords, + 'strDescription' => $strDescription, ]); if ($boolIsMobile) { return View::fetch(); @@ -372,16 +431,26 @@ class Novel extends BaseController $arrRelateveNovel = $NovelModel->getNovel(['n_id' => [ '$in' => $arrRelateveNId, ]], 10); - // echo '
';
- // var_dump($arrNovel);exit;
- // $strNovel = '斗罗大陆';
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => 1,
+ 'strNovelName' => $arrNovel['og_novel_book_name'],
+ 'strNovelAuthor' => $arrNovel['og_novel_author'],
+ 'strNovelCategoryName' => $arrNovel['og_novel_category'],
+ 'strNovelSex' => '男生', // TODO 汉字 男生或者女生
+ 'strNovelStatus' => $arrNovel['og_novel_status'],
+ 'strNovelDescription' => $arrNovel['n_page_description'],
+ ]);
- // ConverterMovel::setVal("strNovelName", $strNovel);
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@DESCRIPTION');
- // $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__));
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
- // $strTitle = ConverterMovel::convert($strTitle);
View::assign([
'arrRelateveNovel' => $arrRelateveNovel,
@@ -390,7 +459,9 @@ class Novel extends BaseController
'arrNovelClicks' => $arrNovelClicks,
'strFocus' => $strFocus,
'strPageCode' => 'boy',
- // 'strTitle' => $strTitle,
+ 'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
if ($boolIsMobile) {
@@ -420,7 +491,6 @@ class Novel extends BaseController
// 分品拼音
$arrNovel['category_pinyin'] = CategoryModel::getPinYinByZh($arrNovel['og_novel_category']);
-
// 最后章节
$ChapterModel = new ChapterModel;
$arrLatestChapter = $ChapterModel->getLatestChapter($intNId);
@@ -452,16 +522,25 @@ class Novel extends BaseController
$arrRelateveNovel = $NovelModel->getNovel(['n_id' => [
'$in' => $arrRelateveNId,
]], 10);
- // echo '';
- // var_dump($arrNovel);exit;
- $strNovel = '斗罗大陆';
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => 1,
+ 'strNovelName' => $arrNovel['og_novel_book_name'],
+ 'strNovelAuthor' => $arrNovel['og_novel_author'],
+ 'strNovelCategoryName' => $arrNovel['og_novel_category'],
+ 'strNovelSex' => '男生', // TODO 汉字 男生或者女生
+ 'strNovelStatus' => $arrNovel['og_novel_status'],
+ 'strNovelDescription' => $arrNovel['n_page_description'],
+ ]);
- ConverterMovel::setVal("strNovelName", $strNovel);
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION');
- $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__));
-
- $strTitle = ConverterMovel::convert($strTitle);
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
View::assign([
'arrRelateveNovel' => $arrRelateveNovel,
@@ -471,6 +550,8 @@ class Novel extends BaseController
'strFocus' => $strFocus,
'strPageCode' => 'boy',
'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
if ($boolIsMobile) {
return View::fetch();
@@ -523,10 +604,26 @@ class Novel extends BaseController
['id' => 8, 'name' => '小说3', 'author' => '作者3'],
];
- // 最新章节 取最新5章节
- // 相邻推荐->关联的 kan 数据
- // 精品推荐->同分类随机10条数据
- // 最新要点->取新意章节, 随机提取一部分内容 大概150字数
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => 1,
+ 'strNovelName' => $arrNovel['og_novel_book_name'],
+ 'strNovelAuthor' => $arrNovel['og_novel_author'],
+ 'strNovelCategoryName' => $arrNovel['og_novel_category'],
+ 'strNovelStatus' => $arrNovel['og_novel_status'],
+ 'strNovelDescription' => $arrNovel['n_page_description'],
+ 'strNovelChapterName' => $arrChapter['name'] ?? '',
+ 'strNovelChapterSort' => $arrChapter['c_sort_num'] ?? '',
+ ]);
+
+
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELCHAPTER@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELCHAPTER@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELCHAPTER@DESCRIPTION');
+
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
View::assign([
'arrNewsNovel' => $arrNewsNovel,
@@ -542,6 +639,9 @@ class Novel extends BaseController
'intNovelId' => $intNId,
'intChapterSort' => $arrChapter['c_sort_num'] ?? 0,
'intChapterPage' => $arrChapter['c_page'] ?? 0,
+ 'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
if ($boolIsMobile) {
return View::fetch('getNovelChapter');
@@ -583,9 +683,28 @@ class Novel extends BaseController
$arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
}
-
$arrCategoryAll = CategoryModel::$arrCategoryAll;
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => 1,
+ 'strNovelName' => $arrNovel['og_novel_book_name'],
+ 'strNovelAuthor' => $arrNovel['og_novel_author'],
+ 'strNovelCategoryName' => $arrNovel['og_novel_category'],
+ 'strNovelStatus' => $arrNovel['og_novel_status'],
+ 'strNovelDescription' => $arrNovel['n_page_description'],
+ 'strNovelChapterName' => $arrChapter['name'],
+ 'strNovelChapterSort' => $arrChapter['c_sort_num'],
+ ]);
+
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION');
+
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
+
View::assign([
'arrNovel' => $arrNovel,
'arrCategoryAll' => $arrCategoryAll,
@@ -596,6 +715,9 @@ class Novel extends BaseController
'intNovelId' => $intNovelId,
'intChapterSort' => $intChapterSort,
'intChapterPage' => $intChapterPage,
+ 'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
if ($boolIsMobile) {
return View::fetch();
@@ -645,7 +767,26 @@ class Novel extends BaseController
$strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder);
$arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
-
+
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => $intPage,
+ 'strNovelSex' => '男生', // TODO 汉字 男生或者女生
+ 'strNovelName' => $arrNovel['og_novel_book_name'],
+ 'strNovelAuthor' => $arrNovel['og_novel_author'],
+ 'strNovelCategoryName' => $arrNovel['og_novel_category'],
+ 'strNovelStatus' => $arrNovel['og_novel_status'],
+ 'strNovelDescription' => $arrNovel['n_page_description'],
+ ]);
+
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION');
+
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
+
View::assign([
'arrNovel' => $arrNovel,
'arrPage' => $arrPage,
@@ -655,6 +796,9 @@ class Novel extends BaseController
'strOrder' => $strOrder,
'strPageCode' => 'chapters',
'intLimit' => $intLimit,
+ 'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
if ($boolIsMobile) {
return View::fetch();
@@ -673,13 +817,13 @@ class Novel extends BaseController
{
$boolIsMobile = $Request->param('boolIsMobile');
- $strKeywords = (string)$Request->get('keyword');
+ $strSearchKeywords = (string)$Request->get('keyword');
$intPage = (int)$Request->get('page', 1);
$intLimit = 20;
- $strKey = sprintf('%s:PC:Novel:Search:%s:Page:%s:Limit:%s', $Request->DomainModel->d_domain, $strKeywords, $intPage, $intLimit);
+ $strKey = sprintf('%s:PC:Novel:Search:%s:Page:%s:Limit:%s', $Request->DomainModel->d_domain, $strSearchKeywords, $intPage, $intLimit);
- if (empty($strKeywords)) {
+ if (empty($strSearchKeywords)) {
return response('请输入搜索的关键字', 400);
}
@@ -687,30 +831,49 @@ class Novel extends BaseController
$arrFilter = [
'$or' => [
- ['og_novel_book_name' => ['$regex' => $strKeywords, '$options' => 'i']],
- ['og_novel_author' => ['$regex' => $strKeywords, '$options' => 'i']],
- ['og_novel_category' => ['$regex' => $strKeywords, '$options' => 'i']],
- ['og_description' => ['$regex' => $strKeywords, '$options' => 'i']],
+ ['og_novel_book_name' => ['$regex' => $strSearchKeywords, '$options' => 'i']],
+ ['og_novel_author' => ['$regex' => $strSearchKeywords, '$options' => 'i']],
+ ['og_novel_category' => ['$regex' => $strSearchKeywords, '$options' => 'i']],
+ ['og_description' => ['$regex' => $strSearchKeywords, '$options' => 'i']],
]
];
-
$arrPage = $NovelModel->getCommonPageOnCache($arrFilter, $intPage, $intLimit, [], $strKey);
$intButtomNum = 10;
- $strBaseUrl = sprintf('/search.html?keyword=%s&page={page}', $strKeywords);
+ $strBaseUrl = sprintf('/search.html?keyword=%s&page={page}', $strSearchKeywords);
$arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
+ // 更新值
+ ConverterMovel::setVal([
+ 'intPage' => $intPage,
+ 'strNovelSex' => '男生', // TODO 汉字 男生或者女生 // 取搜所的第一个小说的男生或者女生
+ 'strSearchKeywords' => $strSearchKeywords,
+ 'strNovelCategoryName' => '玄幻', // TODO 取搜所的第一个小说的分类 汉字(不带小说2字)
+ 'strNovelStatus' => '完结', // TODO 取搜所的第一个小说的状态
+ ]);
+
+ $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE');
+ $strKeywordsTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@KEYWORDS');
+ $strDescriptionTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@DESCRIPTION');
+
+ $strTitle = ConverterMovel::convert($strTitleTemplate);
+ $strKeywords = ConverterMovel::convert($strKeywordsTemplate);
+ $strDescription = ConverterMovel::convert($strDescriptionTemplate);
+
View::assign([
'arrPage' => $arrPage,
'arrPaginator' => $arrPaginator,
- 'strKeywords' => $strKeywords,
+ 'strSearchKeywords' => $strSearchKeywords,
'intPage' => $intPage,
'intTotalPage' => $arrPage['pages'],
- 'strPageCode' => 'search'
+ 'strPageCode' => 'search',
+ 'strTitle' => $strTitle,
+ 'strKeywords' => $strKeywords,
+ 'strDescription' => $strDescription,
]);
- // echo $strKeywords;exit;
+
if ($boolIsMobile) {
return View::fetch();
} else {
diff --git a/code/app/home/view/kuangyu/Novel/getArticleInfo.html b/code/app/home/view/kuangyu/Novel/getArticleInfo.html
index 990ea64..3cb646c 100644
--- a/code/app/home/view/kuangyu/Novel/getArticleInfo.html
+++ b/code/app/home/view/kuangyu/Novel/getArticleInfo.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getArticleList.html b/code/app/home/view/kuangyu/Novel/getArticleList.html
index 272e206..65db7db 100644
--- a/code/app/home/view/kuangyu/Novel/getArticleList.html
+++ b/code/app/home/view/kuangyu/Novel/getArticleList.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html b/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html
index c56823d..099b65a 100644
--- a/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html
+++ b/code/app/home/view/kuangyu/Novel/getKanNovelInfo.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getLibrary.html b/code/app/home/view/kuangyu/Novel/getLibrary.html
index 9d7d5be..03160e4 100644
--- a/code/app/home/view/kuangyu/Novel/getLibrary.html
+++ b/code/app/home/view/kuangyu/Novel/getLibrary.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getNovelChannel.html b/code/app/home/view/kuangyu/Novel/getNovelChannel.html
index 22a302a..8ecbb49 100644
--- a/code/app/home/view/kuangyu/Novel/getNovelChannel.html
+++ b/code/app/home/view/kuangyu/Novel/getNovelChannel.html
@@ -1,6 +1,23 @@
-{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{extend name="baseH5" /}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getNovelChapter.html b/code/app/home/view/kuangyu/Novel/getNovelChapter.html
index b30313d..1105ba5 100644
--- a/code/app/home/view/kuangyu/Novel/getNovelChapter.html
+++ b/code/app/home/view/kuangyu/Novel/getNovelChapter.html
@@ -2,11 +2,15 @@
-
-
-
-
- 01 天龙问世_我真是一条龙-狂雨小说
+
+
+
+
+
+
+ {$strTitle??''}
+
+
diff --git a/code/app/home/view/kuangyu/Novel/getNovelChapterAll.html b/code/app/home/view/kuangyu/Novel/getNovelChapterAll.html
index 6cdaa17..72776bc 100644
--- a/code/app/home/view/kuangyu/Novel/getNovelChapterAll.html
+++ b/code/app/home/view/kuangyu/Novel/getNovelChapterAll.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
@@ -43,18 +60,11 @@
-
+
+ {include file="Public/allChapterPage" /}
- {volist name="arrChapter" id="Chapter" key="key"}
+ {volist name="arrPage.data" id="Chapter" key="key"}
-
{$Chapter.name}
@@ -62,15 +72,9 @@
{/volist}
-
+
+
+ {include file="Public/allChapterPage" /}
diff --git a/code/app/home/view/kuangyu/Novel/getNovelInfo.html b/code/app/home/view/kuangyu/Novel/getNovelInfo.html
index 3b20763..c2c4148 100644
--- a/code/app/home/view/kuangyu/Novel/getNovelInfo.html
+++ b/code/app/home/view/kuangyu/Novel/getNovelInfo.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getNovelRank.html b/code/app/home/view/kuangyu/Novel/getNovelRank.html
index f5b1491..8066c8e 100644
--- a/code/app/home/view/kuangyu/Novel/getNovelRank.html
+++ b/code/app/home/view/kuangyu/Novel/getNovelRank.html
@@ -1,6 +1,23 @@
-{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{extend name="baseH5" /}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Novel/getSearchNovel.html b/code/app/home/view/kuangyu/Novel/getSearchNovel.html
index 5407b72..7863cda 100644
--- a/code/app/home/view/kuangyu/Novel/getSearchNovel.html
+++ b/code/app/home/view/kuangyu/Novel/getSearchNovel.html
@@ -1,6 +1,23 @@
{extend name="baseH5" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="logo-html"}
diff --git a/code/app/home/view/kuangyu/Pc/User/getBookShelf.html b/code/app/home/view/kuangyu/Pc/User/getBookShelf.html
index fdce419..eb04285 100644
--- a/code/app/home/view/kuangyu/Pc/User/getBookShelf.html
+++ b/code/app/home/view/kuangyu/Pc/User/getBookShelf.html
@@ -1,6 +1,23 @@
{extend name="basePcUser" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
diff --git a/code/app/home/view/kuangyu/Pc/User/getHistory.html b/code/app/home/view/kuangyu/Pc/User/getHistory.html
index 9b3c8ef..d154ac1 100644
--- a/code/app/home/view/kuangyu/Pc/User/getHistory.html
+++ b/code/app/home/view/kuangyu/Pc/User/getHistory.html
@@ -1,6 +1,23 @@
{extend name="basePcUser" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
diff --git a/code/app/home/view/kuangyu/Pc/User/index.html b/code/app/home/view/kuangyu/Pc/User/index.html
index 3fdf0ad..8715d0b 100644
--- a/code/app/home/view/kuangyu/Pc/User/index.html
+++ b/code/app/home/view/kuangyu/Pc/User/index.html
@@ -1,6 +1,23 @@
{extend name="basePcUser" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
diff --git a/code/app/home/view/kuangyu/Pc/getArticleInfo.html b/code/app/home/view/kuangyu/Pc/getArticleInfo.html
index 5c10385..9f73cd8 100644
--- a/code/app/home/view/kuangyu/Pc/getArticleInfo.html
+++ b/code/app/home/view/kuangyu/Pc/getArticleInfo.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
diff --git a/code/app/home/view/kuangyu/Pc/getArticleList.html b/code/app/home/view/kuangyu/Pc/getArticleList.html
index 0c385c6..b057d9d 100644
--- a/code/app/home/view/kuangyu/Pc/getArticleList.html
+++ b/code/app/home/view/kuangyu/Pc/getArticleList.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
diff --git a/code/app/home/view/kuangyu/Pc/getKanNovelInfo.html b/code/app/home/view/kuangyu/Pc/getKanNovelInfo.html
index 5003aa2..afa76df 100644
--- a/code/app/home/view/kuangyu/Pc/getKanNovelInfo.html
+++ b/code/app/home/view/kuangyu/Pc/getKanNovelInfo.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="head-css"}
diff --git a/code/app/home/view/kuangyu/Pc/getLibrary.html b/code/app/home/view/kuangyu/Pc/getLibrary.html
index 542d5b3..5db00b0 100644
--- a/code/app/home/view/kuangyu/Pc/getLibrary.html
+++ b/code/app/home/view/kuangyu/Pc/getLibrary.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="head-css"}
diff --git a/code/app/home/view/kuangyu/Pc/getNovelChannel.html b/code/app/home/view/kuangyu/Pc/getNovelChannel.html
index 74234f3..ae3af19 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelChannel.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelChannel.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}boy{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-css"}
diff --git a/code/app/home/view/kuangyu/Pc/getNovelChapter.html b/code/app/home/view/kuangyu/Pc/getNovelChapter.html
index 2e9b67f..be3209b 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelChapter.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelChapter.html
@@ -2,14 +2,16 @@
-
-
-
- 01 天龙问世_我真是一条龙-狂雨小说
+
+
+
+
+ {$strTitle??''}
+
{block name="head-css"}
-
+
{/block}
@@ -139,19 +141,21 @@
data-info="0|-1|486ef2abee55d|0">
- {$arrChapter.name}
+ {$arrChapter.name ?? ''}
{$arrNovel.og_novel_book_name}
{$arrNovel.og_novel_author}
2000字
- {$arrChapter.created_at}
+ {$arrChapter.created_at ?? ''}
- {$arrChapter.content|raw}
+ {if $arrChapter && $arrChapter.content}
+ {$arrChapter.content|raw }
+ {/if}
@@ -170,14 +174,14 @@
- {if $arrChapter.c_sort_num == 1}
+ {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1}
上一章
{else}
- 上一章
+ 上一章
{/if}
|
{if $arrNextChapter && $arrNextChapter.c_sort_num}
- 下一章
+ 下一章
{/if}
diff --git a/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html b/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html
index 1b71bf7..be23924 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelChapterAll.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-css"}
{/block}
diff --git a/code/app/home/view/kuangyu/Pc/getNovelInfo.html b/code/app/home/view/kuangyu/Pc/getNovelInfo.html
index 8ab3fbb..9b56643 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelInfo.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelInfo.html
@@ -1,7 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
-{block name="head-js"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-css"}
{/block}
@@ -132,7 +148,7 @@
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
- {$ForgeNovel.n_forge_title}
+ {$ForgeNovel.n_forge_title}
{/volist}
diff --git a/code/app/home/view/kuangyu/Pc/getNovelRank.html b/code/app/home/view/kuangyu/Pc/getNovelRank.html
index 159bd98..fe2253a 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelRank.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelRank.html
@@ -1,6 +1,24 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
+
{block name="head-css"}
{/block}
diff --git a/code/app/home/view/kuangyu/Pc/getSearchNovel.html b/code/app/home/view/kuangyu/Pc/getSearchNovel.html
index 529a448..5718a13 100644
--- a/code/app/home/view/kuangyu/Pc/getSearchNovel.html
+++ b/code/app/home/view/kuangyu/Pc/getSearchNovel.html
@@ -1,6 +1,23 @@
{extend name="basePc" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
@@ -10,7 +27,7 @@
- 搜索“{$strKeywords}”相关结果共有 {$arrPage.total} 部小说
+ 搜索“{$strSearchKeywords}”相关结果共有 {$arrPage.total} 部小说
+
+
+
+
+
+
+{/block}
{block name="head-js"}{/block}
-
+
{block name="main"}
diff --git a/code/app/home/view/kuangyu/Public/allChapterPage.html b/code/app/home/view/kuangyu/Public/allChapterPage.html
new file mode 100644
index 0000000..148d487
--- /dev/null
+++ b/code/app/home/view/kuangyu/Public/allChapterPage.html
@@ -0,0 +1,33 @@
+{if !empty($arrPaginator)}
+
+ {volist name="arrPaginator" id="item"}
+ {eq name="item.type" value="prev"}
+
+ {$item.label}
+
+ {/eq}
+ {/volist}
+
+
+
+ {volist name="arrPaginator" id="item"}
+ {eq name="item.type" value="next"}
+
+ {$item.label}
+
+ {/eq}
+ {/volist}
+
+{/if}
\ No newline at end of file
diff --git a/code/app/home/view/kuangyu/User/getBookShelf.html b/code/app/home/view/kuangyu/User/getBookShelf.html
index 610a01a..1d53993 100644
--- a/code/app/home/view/kuangyu/User/getBookShelf.html
+++ b/code/app/home/view/kuangyu/User/getBookShelf.html
@@ -1,6 +1,23 @@
{extend name="baseH5User" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="head-name"}我的书架{/block}
diff --git a/code/app/home/view/kuangyu/User/getHistory.html b/code/app/home/view/kuangyu/User/getHistory.html
index 1de31c3..a7ff94d 100644
--- a/code/app/home/view/kuangyu/User/getHistory.html
+++ b/code/app/home/view/kuangyu/User/getHistory.html
@@ -1,6 +1,23 @@
{extend name="baseH5User" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="head-name"}最近阅读{/block}
diff --git a/code/app/home/view/kuangyu/User/index.html b/code/app/home/view/kuangyu/User/index.html
index e37fe98..6bfbc3c 100644
--- a/code/app/home/view/kuangyu/User/index.html
+++ b/code/app/home/view/kuangyu/User/index.html
@@ -1,6 +1,23 @@
{extend name="baseH5User" /}
-{block name='nav-active-class'}home{/block}
-{block name="title"}{/block}
+{block name="title"}{$strTitle??''}{/block}
+{block name="keywords"}{$strKeywords??''}{/block}
+{block name="description"}{$strDescription??''}{/block}
+{block name="head"}
+
+
+
+
+
+
+
{block name="head-js"}{/block}
{block name="head-name"}用户中心{/block}
diff --git a/code/app/home/view/kuangyu/baseH5.html b/code/app/home/view/kuangyu/baseH5.html
index d144f6c..a550076 100644
--- a/code/app/home/view/kuangyu/baseH5.html
+++ b/code/app/home/view/kuangyu/baseH5.html
@@ -3,16 +3,23 @@
-
-
- 狂雨小说
-
-
+
+
-
+ {block name="title"}{/block}
+
+
+
+
+
+
+
-
+
+
+
+ {block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
@@ -98,6 +105,12 @@
{block name="footer-js"}{/block}
+
+
+ {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
+
+
+ {Request->DomainModel->d_statis}
\ No newline at end of file
diff --git a/code/app/home/view/kuangyu/baseH5User.html b/code/app/home/view/kuangyu/baseH5User.html
index 9206c2d..42d6922 100644
--- a/code/app/home/view/kuangyu/baseH5User.html
+++ b/code/app/home/view/kuangyu/baseH5User.html
@@ -1,13 +1,19 @@
-
-
- 狂雨小说
-
+
+
+
+
+
+
+ {$strTitle??''}
+
+ {block name="head"}{/block}
+ {block name="head-css"}{/block}
+ {block name="head-js"}{/block}
@@ -18,7 +24,7 @@
{block name="head-name"}{/block}
-
+
@@ -28,13 +34,13 @@
首页
- 书库
+ 书库
- 书架
+ 书架
- 个人中心
+ 个人中心
@@ -45,6 +51,12 @@
+
+
+ {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
+
+
+ {Request->DomainModel->d_statis}
\ No newline at end of file
diff --git a/code/app/home/view/kuangyu/basePc.html b/code/app/home/view/kuangyu/basePc.html
index 9da533b..9aeb79f 100644
--- a/code/app/home/view/kuangyu/basePc.html
+++ b/code/app/home/view/kuangyu/basePc.html
@@ -3,14 +3,22 @@
-
-
-
- {$strTitle??''}
+
+
+ {block name="title"}{/block}
+
+
+
+
+
+
-
+
+
+
+ {block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
@@ -74,6 +82,12 @@
{block name="footer-js"}{/block}
+
+ {site:cfg code="PUBLIC_TONGJI_CODE" encode="false"/}
+
+
+ {Request->DomainModel->d_statis}
+