From ff8b838f6fafe8bcb10d8231ce6a99425cdd4c98 Mon Sep 17 00:00:00 2001 From: make Date: Sun, 27 Apr 2025 21:31:33 +0800 Subject: [PATCH] debug --- .../view/default/novel/getNovelChapter.html | 14 +- .../home/view/default/pc/getNovelChapter.html | 13 +- .../view/haoZi/novel/getNovelChapter.html | 25 +- .../view/{default => haoZi}/sitemap/index.md | 0 .../{default => haoZi}/sitemap/robots.txt | 0 .../sitemap/sitemap-books-catalog.xml | 0 .../sitemap/sitemap-books.xml | 0 .../sitemap/sitemap-chapters.xml | 0 .../sitemap/sitemap-main.xml | 0 .../sitemap/sitemap_index.xml | 0 .../view/kuangYu/novel/getNovelChapter.html | 31 +- .../home/view/kuangYu/pc/getNovelChapter.html | 21 +- .../view/shikong/novel/getNovelChapter.html | 1 + code/app/home/view/xiongMao/sitemap/index.md | 294 ++++++++++++++++++ .../app/home/view/xiongMao/sitemap/robots.txt | 3 + .../sitemap/sitemap-books-catalog.xml | 20 ++ .../view/xiongMao/sitemap/sitemap-books.xml | 20 ++ .../xiongMao/sitemap/sitemap-chapters.xml | 18 ++ .../view/xiongMao/sitemap/sitemap-main.xml | 46 +++ .../view/xiongMao/sitemap/sitemap_index.xml | 39 +++ 20 files changed, 511 insertions(+), 34 deletions(-) rename code/app/home/view/{default => haoZi}/sitemap/index.md (100%) rename code/app/home/view/{default => haoZi}/sitemap/robots.txt (100%) rename code/app/home/view/{default => haoZi}/sitemap/sitemap-books-catalog.xml (100%) rename code/app/home/view/{default => haoZi}/sitemap/sitemap-books.xml (100%) rename code/app/home/view/{default => haoZi}/sitemap/sitemap-chapters.xml (100%) rename code/app/home/view/{default => haoZi}/sitemap/sitemap-main.xml (100%) rename code/app/home/view/{default => haoZi}/sitemap/sitemap_index.xml (100%) create mode 100644 code/app/home/view/xiongMao/sitemap/index.md create mode 100644 code/app/home/view/xiongMao/sitemap/robots.txt create mode 100644 code/app/home/view/xiongMao/sitemap/sitemap-books-catalog.xml create mode 100644 code/app/home/view/xiongMao/sitemap/sitemap-books.xml create mode 100644 code/app/home/view/xiongMao/sitemap/sitemap-chapters.xml create mode 100644 code/app/home/view/xiongMao/sitemap/sitemap-main.xml create mode 100644 code/app/home/view/xiongMao/sitemap/sitemap_index.xml diff --git a/code/app/home/view/default/novel/getNovelChapter.html b/code/app/home/view/default/novel/getNovelChapter.html index d5447b0..53d4da0 100644 --- a/code/app/home/view/default/novel/getNovelChapter.html +++ b/code/app/home/view/default/novel/getNovelChapter.html @@ -135,13 +135,16 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{$arrGrm[1]|raw}
{$arrGrm[3]|raw} @@ -138,15 +143,19 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} 上一页 - {else} + {/if} + + {if $arrChapter.pre_chapter && $arrChapter.pre_chapter.c_sort_num} {$arrGrm[10]|raw} 上一页 {/if} + | 章节目录 | + {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} {$arrGrm[9]|raw}

{$arrChapter.c_name ?? ''}

- {if $arrChapter.c_sort_num == 1} + {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} 上一页 - {elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} + {/if} + + {if $arrChapter.pre_chapter && $arrChapter.pre_chapter.c_sort_num} 上页 @@ -150,10 +152,23 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
- 上页 - 书页 + {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} + 上一页 + {/if} + + {if $arrChapter.pre_chapter && $arrChapter.pre_chapter.c_sort_num} + 上页 + + {/if} + + 目录 存书签 - 下页 + {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} + 下页 + + {/if}
diff --git a/code/app/home/view/default/sitemap/index.md b/code/app/home/view/haoZi/sitemap/index.md similarity index 100% rename from code/app/home/view/default/sitemap/index.md rename to code/app/home/view/haoZi/sitemap/index.md diff --git a/code/app/home/view/default/sitemap/robots.txt b/code/app/home/view/haoZi/sitemap/robots.txt similarity index 100% rename from code/app/home/view/default/sitemap/robots.txt rename to code/app/home/view/haoZi/sitemap/robots.txt diff --git a/code/app/home/view/default/sitemap/sitemap-books-catalog.xml b/code/app/home/view/haoZi/sitemap/sitemap-books-catalog.xml similarity index 100% rename from code/app/home/view/default/sitemap/sitemap-books-catalog.xml rename to code/app/home/view/haoZi/sitemap/sitemap-books-catalog.xml diff --git a/code/app/home/view/default/sitemap/sitemap-books.xml b/code/app/home/view/haoZi/sitemap/sitemap-books.xml similarity index 100% rename from code/app/home/view/default/sitemap/sitemap-books.xml rename to code/app/home/view/haoZi/sitemap/sitemap-books.xml diff --git a/code/app/home/view/default/sitemap/sitemap-chapters.xml b/code/app/home/view/haoZi/sitemap/sitemap-chapters.xml similarity index 100% rename from code/app/home/view/default/sitemap/sitemap-chapters.xml rename to code/app/home/view/haoZi/sitemap/sitemap-chapters.xml diff --git a/code/app/home/view/default/sitemap/sitemap-main.xml b/code/app/home/view/haoZi/sitemap/sitemap-main.xml similarity index 100% rename from code/app/home/view/default/sitemap/sitemap-main.xml rename to code/app/home/view/haoZi/sitemap/sitemap-main.xml diff --git a/code/app/home/view/default/sitemap/sitemap_index.xml b/code/app/home/view/haoZi/sitemap/sitemap_index.xml similarity index 100% rename from code/app/home/view/default/sitemap/sitemap_index.xml rename to code/app/home/view/haoZi/sitemap/sitemap_index.xml diff --git a/code/app/home/view/kuangYu/novel/getNovelChapter.html b/code/app/home/view/kuangYu/novel/getNovelChapter.html index 551dedb..20bdfc5 100644 --- a/code/app/home/view/kuangYu/novel/getNovelChapter.html +++ b/code/app/home/view/kuangYu/novel/getNovelChapter.html @@ -64,14 +64,14 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} "url": "https://{$DomainModel->d_domain}" }, "image": "{$arrNovel.n_cover_path ?? ''}", - "url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', + "url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}', "inLanguage": "zh-CN", "genre": "{$arrNovel.n_category ??''}", "datePublished": "{$arrNovel['n_update_time'] ?? time()}", "hasPart": { "@type": "CreativeWork", "name": "{$arrChapter.c_name ?? ''}", - "url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', + "url":'https://{$DomainModel->d_domain}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}', "description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' } } @@ -105,19 +105,20 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{$arrGrm[2]|raw}
- {if $arrChapter.c_sort_num == 1 } - {$arrGrm[3]|raw} + {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} 上一章 - {elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} - {$arrGrm[4]|raw} - 上一章 {/if} {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} - 下一章 {/if} +
@@ -128,15 +129,17 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{$arrGrm[5]|raw}
- {if $arrChapter.c_sort_num == 1} + {if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} 上一章 - {elseif $arrChapter['pre_chapter'] && $arrChapter['pre_chapter']['c_sort_num']} - 上一章 {/if} {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} - 下一章 {/if} @@ -173,7 +176,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} {$arrNovel.n_name} - {$arrChapter.c_name} + {$arrChapter.c_name}
@@ -377,7 +380,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} //下一章id nextId: '{$arrNextChapter.c_sort_num ?? 1}' }; - book.chapterUrl = '{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}' ; + book.chapterUrl = '{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}' ; book.url = '{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}' book.nextChapterVip = 0; book.uid = 0; diff --git a/code/app/home/view/kuangYu/pc/getNovelChapter.html b/code/app/home/view/kuangYu/pc/getNovelChapter.html index e3366bb..38b2bfa 100644 --- a/code/app/home/view/kuangYu/pc/getNovelChapter.html +++ b/code/app/home/view/kuangYu/pc/getNovelChapter.html @@ -60,14 +60,14 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} "url": "https://{$DomainModel->d_domain}" }, "image": "{$arrNovel.n_cover_path ?? ''}", - "url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', + "url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}', "inLanguage": "zh-CN", "genre": "{$arrNovel.n_category ??''}", "datePublished": "{$arrNovel['n_update_time'] ?? time()}", "hasPart": { "@type": "CreativeWork", "name": "{$arrChapter.c_name ?? ''}", - "url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}', + "url":'https://{$DomainModel->d_domain}{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}', "description": '{site:replace code="NOVEL@GETNOVELCHAPTER@DESCRIPTION"}' } } @@ -113,14 +113,14 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}

男生

{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="man"} - {$strCategoryName} + {$strCategoryName} {/novel:category}

女生

{novel:category d_key="strCategoryPinyin" d_val="strCategoryName" n_sex="women"} - {$strCategoryName} + {$strCategoryName} {/novel:category}
@@ -197,7 +197,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} {$arrNovel.n_name} - {$arrChapter.c_name}
@@ -230,16 +230,19 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /}
{if $arrChapter && $arrChapter.c_sort_num && $arrChapter.c_sort_num == 1} 上一章 - {else} + {/if} + + {if $arrChapter.pre_chapter && $arrChapter.pre_chapter.c_sort_num} {$arrGrm[10]|raw} 上一章 + href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.pre_chapter.c_sort_num" c_page="$arrChapter.pre_chapter.c_page"/}'>上一章 {/if} + | {if $arrChapter.next_chapter && $arrChapter.next_chapter.c_sort_num} {$arrGrm[9]|raw} 下一章 + href='{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.next_chapter.c_sort_num" c_page="$arrChapter.next_chapter.c_page"/}'>下一章 {/if}
@@ -414,7 +417,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} //下一章id nextId: '{$arrChapter.next_chapter.c_sort_num ?? 1}' }; - book.chapterUrl = '{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="0"/}' ; + book.chapterUrl = '{$strPcPath}{site:cpurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" c_sort="$arrChapter.c_sort_num" c_page="$arrChapter.c_page"/}' ; book.nextChapterVip = 0; diff --git a/code/app/home/view/shikong/novel/getNovelChapter.html b/code/app/home/view/shikong/novel/getNovelChapter.html index cd69511..89ab794 100644 --- a/code/app/home/view/shikong/novel/getNovelChapter.html +++ b/code/app/home/view/shikong/novel/getNovelChapter.html @@ -178,6 +178,7 @@ c_page="$Request.route.intChapterPage" c_key="arrChapter" /} 上一章 {/if} +