This commit is contained in:
make
2025-04-11 23:56:23 +08:00
parent 9350a2afff
commit bc92b44086
37 changed files with 246 additions and 216 deletions

View File

@@ -90,8 +90,12 @@ abstract class BaseController
*/
public function rending($strTemplate = '')
{
// pc端url目录模板
$strPcUrlPathTemplate = $this->request->DomainModel->getFomartSubject('PC_URL_PATH','',false);
// var_dump($strPcUrlPathTemplate);
View::assign("DomainModel", $this->request->DomainModel);
View::assign("TemplatesModel", $this->request->TemplatesModel);
View::assign("strPcPath", $strPcUrlPathTemplate);
return View::fetch($strTemplate);
}

View File

@@ -7,7 +7,9 @@ use app\home\controller\Novel;
use app\home\controller\User;
use think\facade\Route;
// 路由配置文件
/**
* 路由配置文件
*/
$arrRoutes = [
// H5/PC 端前缀
'prefixes' => [
@@ -106,7 +108,9 @@ $arrRoutes = [
];
// 遍历路由配置,动态注册 H5 和 PC 路由
/**
* 遍历路由配置,动态注册 H5 和 PC 路由
*/
foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
$prefixes = is_array($prefixes) ? $prefixes : [$prefixes];
$boolIsMobile = $platform === 'h5';

View File

@@ -31,12 +31,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.name}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
@@ -58,14 +58,14 @@
"url": "https://{$DomainModel->d_domain}"
},
"image": "{$arrNovel.n_cover_path ?? ''}",
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"url": "https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"inLanguage": "zh-CN",
"genre": "{$arrNovel.og_novel_category ??''}",
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
"hasPart": {
"@type": "CreativeWork",
"name": "{$arrChapter.name ?? ''}",
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"url": "https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"description": "{$strDescription}"
}
}
@@ -344,7 +344,7 @@
//下一章id
nextId: '{$arrNextChapter.c_sort_num ?? 1}'
};
book.chapterUrl = '/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}';
book.chapterUrl = '{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}';
book.url = '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
book.nextChapterVip = 0;
book.uid = 0;

View File

@@ -7,7 +7,7 @@
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'}章节目录 - {$DomainModel->d_name} 第{$intPage}页 " />
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
<meta property="og:url"
content='https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}' />
content='https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}' />
<meta property="og:type" content="website" />
<meta property="og:image" content="{$arrNovel.n_cover_path ?? ''}" />
<meta property="og:site_name" content="{$DomainModel->d_name}" />
@@ -15,12 +15,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$intPage}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$intPage}">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.name ?? ''}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />

View File

@@ -15,12 +15,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.name ?? ''}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />

View File

@@ -1,10 +1,10 @@
<li>
<ul>
<li class="lb"><a href="/pc/article/info-332.html" >耽美百合</a></li>
<li class="lb"><a href="{$strPcPath}/article/info-332.html" >耽美百合</a></li>
<li class="sm">
<h3><a href="/pc/article/info-332.html" title="我真是一条龙" >我真是一条龙</a></h3>
<h3><a href="{$strPcPath}/article/info-332.html" title="我真是一条龙" >我真是一条龙</a></h3>
</li>
<li class="gx"><a href="/pc/article/info-332.html" title="老读者必看公告!!!"
<li class="gx"><a href="{$strPcPath}/article/info-332.html" title="老读者必看公告!!!"
>老读者必看公告!!!</a></li>
<li class="zz">兔子很淡定</li>
<li class="sj">1天前</li>

View File

@@ -1,14 +1,14 @@
<li>
{$arrGRM[$key+[start]]|raw}
<h3>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" class="book_cov">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel->n_cover_path ?? ''}"
alt="{$Novel->og_novel_book_name ?? ''}- {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">
</a>
</h3>
<div class="book_inf">
<h3><a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >{$Novel->og_novel_book_name ?? ''}</a></h3>
<h3><a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >{$Novel->og_novel_book_name ?? ''}</a></h3>
<span class="aut">{$Novel->og_novel_author ?? ''}</span>
</div>
</li>

View File

@@ -1,6 +1,6 @@
<div class="bookLink">
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' >
<div class="bookImg">
<img class="lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">

View File

@@ -1,6 +1,6 @@
<div class="bookLink oneLine">
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' >
<em>「{$Novel->og_novel_category ?? ''}」</em>
{$Novel.og_novel_book_name ?? ''}
</a>

View File

@@ -1,14 +1,14 @@
<li>
<h3>
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >
{$Novel->og_novel_book_name ?? ''}
</a>
</h3>
<div class="book_inf">
<span class="aut">{$Novel->og_novel_author ?? ''}</span>
<span class="tag"><a href="/pc/shuku/all/{$Novel->category_pinyin ?? 'all'}/all/page1" >{$Novel->og_novel_category ?? ''}</a></span>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" class="book_cov">
<span class="tag"><a href="{$strPcPath}/shuku/all/{$Novel->category_pinyin ?? 'all'}/all/page1" >{$Novel->og_novel_category ?? ''}</a></span>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel->og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">

View File

@@ -1,9 +1,9 @@
<div class="f3_L">
<h3>
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
{$Novel.og_novel_book_name ?? ''}</a></h3>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel.og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">

View File

@@ -2,12 +2,12 @@
<em class="red_bg">{$key+=1}</em>
<h3 class="name">
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
{$Novel.og_novel_book_name ?? ''}
</a>
</h3>
<div class="open">
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''}">
</a>

View File

@@ -2,10 +2,10 @@
<em class="red_bg">1</em>
<h3 class="name">
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >{$Novel.og_novel_book_name ?? ''}</a>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >{$Novel.og_novel_book_name ?? ''}</a>
</h3>
<div class="open">
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" class="book_cov">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">
</a>

View File

@@ -5,12 +5,12 @@
<li class="sm">
<h3>
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name ?? ''}" >
{$Novel.og_novel_book_name ?? ''}</a>
</h3>
</li>
<li class="gx">
<a href='/pc/books/{$Novel->og_novel_pin_yin}-{$Novel->n_id}/chapter/latest.html'
<a href='{$strPcPath}/books/{$Novel->og_novel_pin_yin}-{$Novel->n_id}/chapter/latest.html'
title="{$Novel->og_novel_latest_chapter_name ?? 'null'}"
>{$Novel->og_novel_latest_chapter_name ?? 'null'}</a></li>
<li class="zz">{$Novel->og_novel_author ?? 'null'}</li>

View File

@@ -1,13 +1,13 @@
<li>
{$arrGRM[$key+[start]]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id ?? 1" n_py="$Novel->og_novel_pin_yin"/}' class="book_cov" title="{$Novel->og_novel_book_name ?? ''}">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id ?? 1" n_py="$Novel->og_novel_pin_yin"/}' class="book_cov" title="{$Novel->og_novel_book_name ?? ''}">
<img class="lazyload_book_cover lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}" alt="{$Novel->og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">
</a>
<div class="book_inf">
<h3><a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >{$Novel->og_novel_book_name ?? ''}</a></h3>
<h3><a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_book_name ?? ''}" >{$Novel->og_novel_book_name ?? ''}</a></h3>
<p>
<span>作者:<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_author ?? ''}">{$Novel->og_novel_author ?? ''}</a></span>
<span>作者:<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel->og_novel_author ?? ''}">{$Novel->og_novel_author ?? ''}</a></span>
<span>分类:<a href="/lists/4.html" title="{$Novel->og_novel_category ?? ''}">{$Novel->og_novel_category ?? ''}</a></span>
<span>状态:{$Novel->og_novel_status ?? ''}</span>
<!-- <span>总字数43.80万字+</span> -->
@@ -16,12 +16,12 @@
<i>标签:</i>
<i></i>
</p>
<p><b>最近更新:</b><a href="/pc/chapter/1-1-1.html" title="219 桃花酿" >219 桃花酿</a>
<p><b>最近更新:</b><a href="{$strPcPath}/chapter/1-1-1.html" title="219 桃花酿" >219 桃花酿</a>
</p>
<p class="int"> {$Novel->og_description ?? ''}</p>
</div>
<div class="right">
<span>更新时间2025-03-20 23:59</span>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' class="read_btn btn">立即阅读</a>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' class="read_btn btn">立即阅读</a>
</div>
</li>

View File

@@ -1,7 +1,7 @@
<li>
{$arrGRM[$key+[start]]|raw}
<h3>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name}" class="book_cov">
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}' title="{$Novel.og_novel_book_name}" class="book_cov">
<img class="lazyload_lb_nv lazyload-img"
src="/static/img/default.jpg" data-src="{$Novel->n_cover_path ?? '/static/img/default.jpg'}"
alt="{$Novel->og_novel_book_name ?? ''} - {$Novel.og_novel_category ?? ''}最新章节在线免费阅读">

View File

@@ -31,7 +31,7 @@
{$arrGRM[1]|raw}
<div class="i-title">
我的书架
<a href="/pc/bookshelf" class="clickMore">查看更多&gt;&gt;</a>
<a href="{$strPcPath}/bookshelf" class="clickMore">查看更多&gt;&gt;</a>
</div>
<ul class="bookUl" id="bookshelf-ul">
@@ -42,7 +42,7 @@
<div class="myMod">
<div class="i-title">
最近阅读
<a href="/pc/history" class="clickMore">查看更多&gt;&gt;</a>
<a href="{$strPcPath}/history" class="clickMore">查看更多&gt;&gt;</a>
</div>
<ul class="bookUl" id="history-ul">
@@ -76,7 +76,7 @@
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
{$arrGRM[$key]|raw}
<li>
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'
alt="{$Novel.og_novel_book_name ?? ''}" title="{$Novel.og_novel_book_name ?? ''}">
<img src="{$Novel.n_cover_path ?? ''}">
</a>
@@ -151,26 +151,26 @@
`;
} else {
bookElement.innerHTML = `
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" >
<span class="bookName">${book.og_novel_book_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<a href="/pc/search.html?keyword=${book.og_novel_author}">
<a href="{$strPcPath}/search.html?keyword=${book.og_novel_author}">
<em class="none">${book.og_novel_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
</span>
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<i class="goon">阅读</i>
</a>
</p>
@@ -225,26 +225,26 @@
`;
} else {
bookElement.innerHTML = `
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}" >
<span class="bookName">${book.og_novel_book_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<a href="/pc/search.html?keyword=${book.og_novel_author}">
<a href="{$strPcPath}/search.html?keyword=${book.og_novel_author}">
<em class="none">${book.og_novel_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
</span>
<a href="/pc/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<a href="{$strPcPath}/xiaoshuo/${book.og_novel_pin_yin}-${book.n_id}/zhang-${book.c_sort_num}" >
<i class="goon">阅读</i>
</a>
</p>

View File

@@ -23,7 +23,7 @@
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>

View File

@@ -23,7 +23,7 @@
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -46,13 +46,13 @@
<div class="optCl" mod="search_channel">
<span class="optTit">所属分类</span>
<ul>
<li><a class="on" href="/pc/article/list.html" btn="search_category">全部</a></li>
<li><a href="/pc/article/list-1-1.html" btn="search_category">高考作文</a></li>
<li><a href="/pc/article/list-2-1.html" btn="search_category">小说解读</a></li>
<li><a href="/pc/article/list-3-1.html" btn="search_category">影视解说</a></li>
<li><a href="/pc/article/list-4-1.html" btn="search_category">王者荣耀</a></li>
<li><a href="/pc/article/list-5-1.html" btn="search_category">日常八卦</a></li>
<li><a href="/pc/article/list-6-1.html" btn="search_category">其它</a></li>
<li><a class="on" href="{$strPcPath}/article/list.html" btn="search_category">全部</a></li>
<li><a href="{$strPcPath}/article/list-1-1.html" btn="search_category">高考作文</a></li>
<li><a href="{$strPcPath}/article/list-2-1.html" btn="search_category">小说解读</a></li>
<li><a href="{$strPcPath}/article/list-3-1.html" btn="search_category">影视解说</a></li>
<li><a href="{$strPcPath}/article/list-4-1.html" btn="search_category">王者荣耀</a></li>
<li><a href="{$strPcPath}/article/list-5-1.html" btn="search_category">日常八卦</a></li>
<li><a href="{$strPcPath}/article/list-6-1.html" btn="search_category">其它</a></li>
</ul>
</div>
@@ -90,17 +90,17 @@
<ul class="pagination">
<li class="disabled"><span>«</span></li>
<li class="active"><span>1</span></li>
<li><a href="/pc/article/list--2.html">2</a></li>
<li><a href="/pc/article/list--3.html">3</a></li>
<li><a href="/pc/article/list--4.html">4</a></li>
<li><a href="/pc/article/list--5.html">5</a></li>
<li><a href="/pc/article/list--6.html">6</a></li>
<li><a href="/pc/article/list--7.html">7</a></li>
<li><a href="/pc/article/list--8.html">8</a></li>
<li><a href="{$strPcPath}/article/list--2.html">2</a></li>
<li><a href="{$strPcPath}/article/list--3.html">3</a></li>
<li><a href="{$strPcPath}/article/list--4.html">4</a></li>
<li><a href="{$strPcPath}/article/list--5.html">5</a></li>
<li><a href="{$strPcPath}/article/list--6.html">6</a></li>
<li><a href="{$strPcPath}/article/list--7.html">7</a></li>
<li><a href="{$strPcPath}/article/list--8.html">8</a></li>
<li class="disabled"><span>...</span></li>
<li><a href="/pc/article/list--33.html">33</a></li>
<li><a href="/pc/article/list--34.html">34</a></li>
<li><a href="/pc/article/list--2.html">»</a></li>
<li><a href="{$strPcPath}/article/list--33.html">33</a></li>
<li><a href="{$strPcPath}/article/list--34.html">34</a></li>
<li><a href="{$strPcPath}/article/list--2.html">»</a></li>
</ul>
</div>
<!--页码切换 结束-->

View File

@@ -15,12 +15,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.name ?? ''}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />
@@ -63,7 +63,7 @@
{/block}
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -73,19 +73,19 @@
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/" itemprop="item">
<a href="{$strPcPath}/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1" itemprop="item">
<a href="{$strPcPath}/shuku/all/{$arrNovel.category_pinyin}/all/page1" itemprop="item">
<span itemprop="name">{$arrNovel.og_novel_category}</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<span itemprop="name">{$arrNovel['og_novel_book_name']}</span>
</a>
<meta itemprop="position" content="3" />
@@ -96,7 +96,7 @@
<div class="info">
<div class="info_box">
<div class="info_L">
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
title="{$arrNovel['og_novel_book_name']}" class="book_cov">
<img src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
alt="{$Novel->og_novel_book_name ?? ''}封面" class="lazyload_book_cover lazyload-img">
@@ -113,7 +113,7 @@
<div class="info_C book_inf">
<div class="c01">
<h3><a
href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel['og_novel_book_name']}</a>
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel['og_novel_book_name']}</a>
</h3>
<!-- <span id="mod_book_star">0分</span> -->
</div>
@@ -141,8 +141,8 @@
</div>
<div class="c04">
{if !empty($arrChapter)}
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1" class="read">立即阅读</a>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" class="mulu">目录</a>
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1" class="read">立即阅读</a>
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" class="mulu">目录</a>
{/if}
</div>
<!-- <div class="c05">
@@ -158,7 +158,7 @@
<div class="inf02">
<h4>小说信息</h4>
<p>类别:
<a href='/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1' title="{$arrNovel.og_novel_category}">
<a href='{$strPcPath}/shuku/all/{$arrNovel.category_pinyin}/all/page1' title="{$arrNovel.og_novel_category}">
{$arrNovel.og_novel_category}
</a>
</p>
@@ -182,7 +182,7 @@
<div class="zj_con">
{volist name="arrChapter" id="Chapter" key="key"}
<p>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}"
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}"
class="zj">{$Chapter.name}</a>
<span class="time">{$Chapter.created_at}</span>
<!-- <span class="time">3天前</span>-->
@@ -197,7 +197,7 @@
<div class="pl_con">
{volist name="arrNovel.n_forge_novel" id="ForgeNovel" key="key"}
<!-- n_forge_id -->
<a href='/pc/kan-xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}'
<a href='{$strPcPath}/kan-xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}'
class="red">{$ForgeNovel.n_forge_title}</a>
{/volist}
@@ -211,13 +211,13 @@
{volist name="arrRelateveNovel" id="Novel" key="key"}
<li>
<h3>
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
title="{$Novel['og_novel_book_name'] ?? ''}">
{$Novel['og_novel_book_name'] ?? ''}
</a>
</h3>
<div>
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
title="$Novel['og_novel_book_name'] ?? ''}" class="book_cov">
<img src="/template/kuangyu/home/bai_web/images/default.png"
data-src="{$Novel['n_cover_path'] ?? ''}" class="lazyload_book_cover lazyload-img"

View File

@@ -49,7 +49,7 @@
{/block}
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -60,13 +60,13 @@
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/" itemprop="item">
<a href="{$strPcPath}/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/shuku/all" itemprop="item">
<a href="{$strPcPath}/shuku/all" itemprop="item">
<span itemprop="name">书库</span>
</a>
</li>
@@ -79,23 +79,23 @@
<div class="optCl" mod="search_channel">
<span class="optTit">所属频道</span>
<ul>
<li><a class='{eq name="strGender" value="all"}on {/eq}' href="/pc/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
<li><a class='{eq name="strGender" value="nansheng-xiaoshuo"}on {/eq}' href="/pc/shuku/nansheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">男生</a></li>
<li><a class='{eq name="strGender" value="nvsheng-xiaoshuo"}on {/eq}' href="/pc/shuku/nvsheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">女生</a></li>
<li><a class='{eq name="strGender" value="all"}on {/eq}' href="{$strPcPath}/shuku/all/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
<li><a class='{eq name="strGender" value="nansheng-xiaoshuo"}on {/eq}' href="{$strPcPath}/shuku/nansheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">男生</a></li>
<li><a class='{eq name="strGender" value="nvsheng-xiaoshuo"}on {/eq}' href="{$strPcPath}/shuku/nvsheng-xiaoshuo/{$strCategory}/{$strStatus}/page{$intPage}" btn="search_category">女生</a></li>
</ul>
</div>
<div class="optCl" mod="search_channel">
<span class="optTit">所属分类</span>
<ul>
<li><a class='{eq name="strCategory" value="all"}on {/eq}' href="/pc/shuku/{$strGender}/all/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
<li><a class='{eq name="strCategory" value="all"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/all/{$strStatus}/page{$intPage}" btn="search_category">全部</a></li>
{eq name="strGender" value="nansheng-xiaoshuo"}
{foreach $arrCategoryAll.man as $key=>$vo }
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="/pc/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
{/foreach}
{else}
{foreach $arrCategoryAll.women as $key=>$vo }
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="/pc/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
<li><a class='{eq name="key" value="$strCategory"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$key}/{$strStatus}/page{$intPage}" btn="search_category">{$vo}</a></li>
{/foreach}
{/eq}
@@ -105,9 +105,9 @@
<div class="optCl">
<span class="optTit">是否完结</span>
<ul>
<li><a class='{eq name="strStatus" value="all"}on {/eq}' href="/pc/shuku/{$strGender}/{$strCategory}/all/page{$intPage}" btn="search_category">全部</a></li>
<li><a class='{eq name="strStatus" value="lianzai"}on {/eq}' href="/pc/shuku/{$strGender}/{$strCategory}/lianzai/page{$intPage}" btn="search_category">连载</a></li>
<li><a class='{eq name="strStatus" value="wanjie"}on {/eq}' href="/pc/shuku/{$strGender}/{$strCategory}/wanjie/page{$intPage}" btn="search_category">完本</a></li>
<li><a class='{eq name="strStatus" value="all"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/all/page{$intPage}" btn="search_category">全部</a></li>
<li><a class='{eq name="strStatus" value="lianzai"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/lianzai/page{$intPage}" btn="search_category">连载</a></li>
<li><a class='{eq name="strStatus" value="wanjie"}on {/eq}' href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/wanjie/page{$intPage}" btn="search_category">完本</a></li>
</ul>
</div>
</div>
@@ -130,14 +130,14 @@
{if $intPage == 1}
<li class="disabled"><span>«</span></li>
{else}
<li><a href="/pc/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage-1}">«</a></li>
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage-1}">«</a></li>
{/if}
{/case}
{case value="下一页"}
{if $intPage >= $intTotalPage}
<li class="disabled"><span>»</span></li>
{else}
<li><a href="/pc/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage+1}">»</a></li>
<li><a href="{$strPcPath}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage+1}">»</a></li>
{/if}
{/case}
{case value="..."}
@@ -146,7 +146,7 @@
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
<a href="/pc{$vo.url}">{$vo.label}</a>
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
</li>
{/if}
{/switch}

View File

@@ -32,7 +32,7 @@
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -46,18 +46,18 @@
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/" itemprop="item">
<a href="{$strPcPath}/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
{eq name="strPageCode" value="boys"}
<a href="/pc/nansheng-xiaoshuo" itemprop="item">
<a href="{$strPcPath}/nansheng-xiaoshuo" itemprop="item">
<span itemprop="name">男生</span>
</a>
{else}
<a href="/pc/nvsheng-xiaoshuo" itemprop="item">
<a href="{$strPcPath}/nvsheng-xiaoshuo" itemprop="item">
<span itemprop="name">女生</span>
</a>
{/eq}

View File

@@ -12,7 +12,7 @@
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
{block name="head-css"}
<link rel="canonical"
href='https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}'>
href='https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}'>
{/block}
<!-- 社交媒体标签 -->
@@ -27,12 +27,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrChapter.name}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
@@ -54,14 +54,14 @@
"url": "https://{$DomainModel->d_domain}"
},
"image": "{$arrNovel.n_cover_path ?? ''}",
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"url": "https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"inLanguage": "zh-CN",
"genre": "{$arrNovel.og_novel_category ??''}",
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
"hasPart": {
"@type": "CreativeWork",
"name": "{$arrChapter.name ?? ''}",
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"url": "https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
"description": "{$strDescription}"
}
}
@@ -70,7 +70,7 @@
</head>
<body class="theme-0 w800" data-bid='/pc/xiaoshuo/name-1'>
<body class="theme-0 w800" data-bid='{$strPcPath}/xiaoshuo/name-1'>
{$arrGRM[0]|raw}
<div class="wrap">
<div class="read-header" id="readHeader">
@@ -82,7 +82,7 @@
<ul>
<li>
{$arrGRM[17]|raw}
<cite><a href="/pc/">首页</a></cite>
<cite><a href="{$strPcPath}/">首页</a></cite>
</li>
<li id="j_nearRead" class="">
<cite>最近阅读</cite>
@@ -90,7 +90,7 @@
<dl>
</dl>
{$arrGRM[18]|raw}
<a class="all" href='/pc/history'>
<a class="all" href='{$strPcPath}/history'>
查看全部<em class="iconfont"></em>
</a>
</div>
@@ -99,29 +99,29 @@
<cite>快速导航</cite>
<div class="dropdown type-list">
<div class="type-box">
<h3><a href="/pc/">首页</a></h3>
<h3><a href="{$strPcPath}/">首页</a></h3>
</div>
<div class="type-box">
<h3><a href='/pc/shuku/nansheng-xiaoshuo/all/all/page1'>男生</a></h3>
<h3><a href='{$strPcPath}/shuku/nansheng-xiaoshuo/all/all/page1'>男生</a></h3>
{foreach $arrCategoryAll.man as $key=>$vo }
<a href="/pc/shuku/nansheng-xiaoshuo/{$key}/all/page1">{$vo}</a>
<a href="{$strPcPath}/shuku/nansheng-xiaoshuo/{$key}/all/page1">{$vo}</a>
{/foreach}
</div>
<div class="type-box">
<h3><a href="/pc/shuku/nvsheng-xiaoshuo/{$key}/all/page1">女生</a></h3>
<h3><a href="{$strPcPath}/shuku/nvsheng-xiaoshuo/{$key}/all/page1">女生</a></h3>
{foreach $arrCategoryAll.women as $key=>$vo }
<a href="/pc/shuku/nvsheng-xiaoshuo/{$key}/all/page1">{$vo}</a>
<a href="{$strPcPath}/shuku/nvsheng-xiaoshuo/{$key}/all/page1">{$vo}</a>
{/foreach}
</div>
<div class="type-box">
<h3><a href="/pc/shuku/all">书库</a></h3>
<h3><a href="{$strPcPath}/shuku/all">书库</a></h3>
</div>
<div class="type-box">
<h3><a href="/pc/paihang/all">排行</a></h3>
<h3><a href="{$strPcPath}/paihang/all">排行</a></h3>
</div>
<!-- <div class="type-box">
<h3><a href="/pc/seo.html" >文章</a></h3>
<h3><a href="{$strPcPath}/seo.html" >文章</a></h3>
</div> -->
</div>
</li>
@@ -131,7 +131,7 @@
<div class="read-login fr">
<ul>
<li id="min-search">
<form action="/pc/search.html" method="get">
<form action="{$strPcPath}/search.html" method="get">
<input class="submit-input" type="submit" id="searchSubmit">
<input id="pin-input" class="pin-input hide" name="keyword" type="text" placeholder="">
<label id="pin-search" for="searchSubmit">
@@ -142,11 +142,11 @@
<li class="line"></li>
<li class="sign-in">
<img src="/template/kuangyu/reader/web/images/user-icon.png" class="headPortrait">
<a href="/pc/user">123456</a>
<a href="{$strPcPath}/user">123456</a>
<div class="dropdown">
<!-- <a href="/user/index/index.html">个人中心</a> -->
{$arrGRM[16]|raw}
<a href="/pc/bookshelf">我的书架</a>
<a href="{$strPcPath}/bookshelf">我的书架</a>
<!-- <a href="/user/recentread/index.html">阅读记录</a> -->
<!-- <a href="/user/user/logout.html" class="exit">退出</a> -->
</div>
@@ -156,25 +156,25 @@
</div>
</div>
<div class="crumbs-nav">
<a href="/pc/">首页</a>
<a href="{$strPcPath}/">首页</a>
<em class="iconfont"></em>
{if $arrNovel.category_sex == 'man'}
{$arrGRM[15]|raw}
<a href='/pc/shuku/nansheng-xiaoshuo/all/all/page1'>男生</a>
<a href='{$strPcPath}/shuku/nansheng-xiaoshuo/all/all/page1'>男生</a>
<em class="iconfont"></em>
{$arrGRM[14]|raw}
<a
href='/pc/shuku/nansheng-xiaoshuo/{$arrNovel.category_pinyin}/all/page1'>{$arrNovel.og_novel_category}</a>
href='{$strPcPath}/shuku/nansheng-xiaoshuo/{$arrNovel.category_pinyin}/all/page1'>{$arrNovel.og_novel_category}</a>
{else}
<a href='/pc/shuku/nvsheng-xiaoshuo/all/all/page1'>女生</a>
<a href='{$strPcPath}/shuku/nvsheng-xiaoshuo/all/all/page1'>女生</a>
<em class="iconfont"></em>
{$arrGRM[13]|raw}
<a href='/pc/shuku/nvsheng-xiaoshuo/{$arrNovel.category_pinyin}/all/page1'>{$arrNovel.og_novel_category}</a>
<a href='{$strPcPath}/shuku/nvsheng-xiaoshuo/{$arrNovel.category_pinyin}/all/page1'>{$arrNovel.og_novel_category}</a>
{/if}
<em class="iconfont"></em>
{$arrGRM[12]|raw}
<a
href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel.og_novel_book_name}</a>
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel.og_novel_book_name}</a>
</div>
<div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
<div id="j_chapterBox">
@@ -193,7 +193,7 @@
<div class="info fl">
{$arrGRM[11]|raw}
<a
href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
<em class="iconfont"></em> {$arrNovel.og_novel_book_name}</a>
<a href="javascript:"> <em class="iconfont"></em> {$arrNovel.og_novel_author}</a>
<i><em class="iconfont"></em><span class="j_chapterWordCut">2000</span></i>
@@ -222,13 +222,13 @@
{else}
{$arrGRM[10]|raw}
<a id="j_chapterPrev"
href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}">上一章</a>
href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}">上一章</a>
{/if}
<span>|</span>
{if $arrNextChapter && $arrNextChapter.c_sort_num}
{$arrGRM[9]|raw}
<a id="j_chapterNext"
href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrNextChapter.c_sort_num ?? 1}">下一章</a>
href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrNextChapter.c_sort_num ?? 1}">下一章</a>
{/if}
</div>
</div>
@@ -238,7 +238,7 @@
<dl>
<dd id="j_navCatalogBtn">
{$arrGRM[8]|raw}
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng/1">
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng/1">
<i><em class="iconfont"></em><span>目录</span></i>
</a>
</dd>
@@ -255,7 +255,7 @@
</dd>
<dd>
{$arrGRM[6]|raw}
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
<i><em class="iconfont"></em><span>详情</span></i>
</a>
</dd>
@@ -399,7 +399,7 @@
//下一章id
nextId: '{$arrNextChapter.c_sort_num ?? 1}'
};
book.chapterUrl = '/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}';
book.chapterUrl = '{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrPreChapter.c_sort_num ?? 1}';
book.nextChapterVip = 0;
</script>
<script type="text/javascript" src="/template/kuangyu/reader/web/js/global.js"></script>

View File

@@ -15,12 +15,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrLatestChapter.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrLatestChapter.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.name}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrLatestChapter.n_id}/zhang-{$arrLatestChapter.c_sort_num}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrLatestChapter.n_id}/zhang-{$arrLatestChapter.c_sort_num}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />
@@ -58,7 +58,7 @@
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -75,13 +75,13 @@
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/shuku/all/{arrNovel.category_pinyin}/all/page1" itemprop="item">
<a href="{$strPcPath}/shuku/all/{arrNovel.category_pinyin}/all/page1" itemprop="item">
<span itemprop="name">{$arrNovel.og_novel_category}</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<span itemprop="name">{$arrNovel['og_novel_book_name']}</span>
</a>
<meta itemprop="position" content="3" />
@@ -98,7 +98,7 @@
<div class="top">
{$arrGRM[0]|raw}
<h1><a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' >{$arrNovel['og_novel_book_name']}章节目录 - {$arrNovel['og_novel_author']} - {$DomainModel->d_name} 第{$intPage}页</a></h1>
<h1><a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' >{$arrNovel['og_novel_book_name']}章节目录 - {$arrNovel['og_novel_author']} - {$DomainModel->d_name} 第{$intPage}页</a></h1>
<p>作者:{$arrNovel.og_novel_author}</p>
</div>
<div class="fenlei">
@@ -114,7 +114,7 @@
<li>
{$arrGRM[$key]|raw}
<h2>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" >{$Chapter.name}</a>
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" >{$Chapter.name}</a>
</h2>
</li>
{/foreach}

View File

@@ -15,12 +15,12 @@
<meta property="og:novel:author" content="{$arrNovel.og_novel_author ?? ''}">
<meta property="og:novel:book_name" content="{$arrNovel.og_novel_book_name ?? ''}">
<meta property="og:novel:read_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1">
<meta property="og:novel:status" content="{$arrNovel.og_novel_status ?? ''}">
<meta property="og:novel:update_time" content="{$arrNovel.og_novel_update_time ?? ''}">
<meta property="og:novel:latest_chapter_name" content="{$arrLatestChapter.name ?? ''}">
<meta property="og:novel:latest_chapter_url"
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
content="https://{$DomainModel->d_domain}{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrLatestChapter.c_sort_num ?? 1}">
<!-- 可选:支持 Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />
@@ -64,7 +64,7 @@
{/block}
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -74,19 +74,19 @@
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/" itemprop="item">
<a href="{$strPcPath}/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1" itemprop="item">
<a href="{$strPcPath}/shuku/all/{$arrNovel.category_pinyin}/all/page1" itemprop="item">
<span itemprop="name">{$arrNovel.og_novel_category}</span>
</a>
<meta itemprop="position" content="2" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' itemprop="item">
<span itemprop="name">{$arrNovel['og_novel_book_name']}</span>
</a>
<meta itemprop="position" content="3" />
@@ -98,7 +98,7 @@
<div class="info">
<div class="info_box">
<div class="info_L">
<a href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
title="{$arrNovel['og_novel_book_name']}" class="book_cov">
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
alt="{$arrNovel['og_novel_book_name'] ?? ''}小说封面 - {$arrNovel.og_novel_author}最新章节" class="lazyload_book_cover lazyload-img">
@@ -115,7 +115,7 @@
<div class="info_C book_inf">
<div class="c01">
<h2><a
href='/pc{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel['og_novel_book_name']}</a>
href='{$strPcPath}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>{$arrNovel['og_novel_book_name']}</a>
</h2>
<!-- <span id="mod_book_star">0分</span> -->
</div>
@@ -143,8 +143,8 @@
</div>
<div class="c04">
{if !empty($arrChapter)}
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1" class="read">立即阅读</a>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" class="mulu">目录</a>
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-1" class="read">立即阅读</a>
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng" class="mulu">目录</a>
{/if}
</div>
<!-- <div class="c05">
@@ -160,7 +160,7 @@
<div class="inf02">
<h4>小说信息</h4>
<p>类别:
<a href='/pc/shuku/all/{$arrNovel.category_pinyin}/all/page1' title="{$arrNovel.og_novel_category}">
<a href='{$strPcPath}/shuku/all/{$arrNovel.category_pinyin}/all/page1' title="{$arrNovel.og_novel_category}">
{$arrNovel.og_novel_category}
</a>
</p>
@@ -185,7 +185,7 @@
{volist name="arrChapter" id="Chapter" key="key"}
<p>
{$arrGRM[$key]|raw}
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}"
<a href="{$strPcPath}/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$Chapter.n_id}/zhang-{$Chapter.c_sort_num}"
title="{$arrNovel.og_novel_book_name}-{$Chapter.name}"
class="zj">{$Chapter.name}</a>
<span class="time">{$Chapter.created_at}</span>
@@ -204,7 +204,7 @@
{$arrGRM[$key+20]|raw}
{/if}
<a href='/pc/kan-xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}'
<a href='{$strPcPath}/kan-xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}-{$ForgeNovel.n_forge_id}'
class="red">{$ForgeNovel.n_forge_title}</a>
{/volist}
@@ -219,13 +219,13 @@
<li>
<h3>
{$arrGRM[$key+10]|raw}
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
title="{$Novel['og_novel_book_name'] ?? ''}">
{$Novel['og_novel_book_name'] ?? ''}
</a>
</h3>
<div>
<a href='/pc{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]" /}'
title="$Novel['og_novel_book_name'] ?? ''}" class="book_cov">
<img src="/template/kuangyu/home/bai_web/images/default.png"
data-src="{$Novel['n_cover_path'] ?? ''}" class="lazyload_book_cover lazyload-img"

View File

@@ -26,7 +26,7 @@
{block name='body-class'}body-rank-class{/block}
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -37,13 +37,13 @@
<nav class="breadcrumb" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/" itemprop="item">
<a href="{$strPcPath}/" itemprop="item">
<span itemprop="name">首页</span>
</a>
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="/pc/paihang/all" itemprop="item">
<a href="{$strPcPath}/paihang/all" itemprop="item">
<span itemprop="name">排行榜</span>
</a>
</li>
@@ -51,7 +51,7 @@
</nav>
<!--大标题 开始-->
<!-- <div class="rank_bt">
<a href="/pc/rank.html" class="all_btn">完整榜单</a>
<a href="{$strPcPath}/rank.html" class="all_btn">完整榜单</a>
</div> -->
<!--大标题 结束-->
<!--各种榜单 开始-->
@@ -74,7 +74,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->
@@ -98,7 +98,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->
@@ -122,7 +122,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->
@@ -146,7 +146,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->
@@ -170,7 +170,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->
@@ -194,7 +194,7 @@
</ol>
</div>
<!-- <span class="more">
<a btn="look_more" href="/pc/rank.html" >
<a btn="look_more" href="{$strPcPath}/rank.html" >
<s></s><i>查看更多</i><s></s>
</a>
</span> -->

View File

@@ -37,7 +37,7 @@
{block name="logo-html"}
<h2>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h2>
@@ -75,14 +75,14 @@
{if $intPage == 1}
<li class="disabled"><span>«</span></li>
{else}
<li><a href="/pc/search.html?keyword=我&page={$intPage-1}">«</a></li>
<li><a href="{$strPcPath}/search.html?keyword=我&page={$intPage-1}">«</a></li>
{/if}
{/case}
{case value="下一页"}
{if $intPage >= $intTotalPage}
<li class="disabled"><span>»</span></li>
{else}
<li><a href="/pc/search.html?keyword=我&page={$intPage+1}">»</a></li>
<li><a href="{$strPcPath}/search.html?keyword=我&page={$intPage+1}">»</a></li>
{/if}
{/case}
{case value="..."}
@@ -91,7 +91,7 @@
{default /}
{if preg_match('/^\d+$/', $vo.label)}
<li class='{eq name="vo.label" value="$intPage"}active {/eq}'>
<a href="/pc{$vo.url}">{$vo.label}</a>
<a href="{$strPcPath}{$vo.url}">{$vo.label}</a>
</li>
{/if}
{/switch}

View File

@@ -27,7 +27,7 @@
{block name="logo-html"}
<h1>
<a href="/pc/">
<a href="{$strPcPath}/">
{$DomainModel->d_name}-{$DomainModel->d_text_logo}
</a>
</h1>
@@ -62,7 +62,7 @@
{if $key == 1}
<h3>
{$arrGRM[1]|raw}
<a href='/pc{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'
title="{$Novel.og_novel_book_name ?? ''}"
class="zdz">
{$Novel.og_novel_book_name ?? ''}
@@ -148,7 +148,7 @@
{/if}
{/foreach}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
<div class="list_wrap" style="display: none;">
<ol class="list" mod="rank_data_list">
@@ -161,7 +161,7 @@
{/if}
{/foreach}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
<div class="list_wrap" style="display: none;">
<ol class="list" mod="rank_data_list">
@@ -174,7 +174,7 @@
{/if}
{/foreach}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
</div>
</div>
@@ -223,7 +223,7 @@
{/if}
{/volist}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
<div class="list_wrap" style="display: none;">
<ol class="list" mod="rank_data_list">
@@ -236,7 +236,7 @@
{/if}
{/volist}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
<div class="list_wrap" style="display: none;">
<ol class="list" mod="rank_data_list">
@@ -249,7 +249,7 @@
{/if}
{/volist}
</ol>
<span class="more"><a href="/pc/paihang" ><s></s><i>查看更多</i><s></s></a></span>
<span class="more"><a href="{$strPcPath}/paihang" ><s></s><i>查看更多</i><s></s></a></span>
</div>
</div>
</div>

View File

@@ -22,6 +22,9 @@
{block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
<script>
const strPcPath = `{$strPcPath}`;
</script>
</head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">

View File

@@ -15,6 +15,9 @@
{block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
<script>
const strPcPath = `{$strPcPath}`;
</script>
</head>
<body style="font-size: 12px;">

View File

@@ -15,6 +15,9 @@
{block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
<script>
const strPcPath = `{$strPcPath}`;
</script>
</head>
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
@@ -25,34 +28,34 @@
{block name="logo-html"}{/block}
<ul class="nav">
<li class=' {eq name="strPageCode" value="home"}on {/eq}'>
<a href="/pc/" target="_self" title="首页">首页</a>
<a href="{$strPcPath}/" target="_self" title="首页">首页</a>
</li>
<li class=' {eq name="strPageCode" value="boys"}on {/eq}'>
<a href="/pc/nansheng-xiaoshuo" target="_self" title="男生">男生</a>
<a href="{$strPcPath}/nansheng-xiaoshuo" target="_self" title="男生">男生</a>
</li>
<li class=' {eq name="strPageCode" value="girls"}on {/eq}'>
<a href="/pc/nvsheng-xiaoshuo" target="_self" title="女生">女生</a>
<a href="{$strPcPath}/nvsheng-xiaoshuo" target="_self" title="女生">女生</a>
</li>
<li class=' {eq name="strPageCode" value="library"}on {/eq}'>
<a href="/pc/shuku/all" target="_self" title="书库">书库</a>
<a href="{$strPcPath}/shuku/all" target="_self" title="书库">书库</a>
</li>
<li class=' {eq name="strPageCode" value="rank"}on {/eq}'>
<a href="/pc/paihang/all" target="_self" title="排行">排行</a>
<a href="{$strPcPath}/paihang/all" target="_self" title="排行">排行</a>
</li>
<!-- <li class=' {eq name="strPageCode" value="article"}on {/eq}'>
<a href="/pc/article/list" target="_self" title="文章">文章</a>
<a href="{$strPcPath}/article/list" target="_self" title="文章">文章</a>
</li> -->
</ul>
<div class="headWrap_r">
<div class="search long" id="mod_top_search">
<div class="search_sel">
<input type="text" name="keyword" url="/pc/search.html" class="search-val" value="" placeholder="我要搜.. "
<input type="text" name="keyword" url="{$strPcPath}/search.html" class="search-val" value="" placeholder="我要搜.. "
maxlength="100" autocomplete="off">
</div>
<a href="" class="search_btn"><s></s></a>
</div>
<div class="login">
<span class="login_before"><a href="/pc/user"><s></s><i>个人中心</i></a></span>
<span class="login_before"><a href="{$strPcPath}/user"><s></s><i>个人中心</i></a></span>
</div>
</div>
</div>

View File

@@ -13,6 +13,9 @@
{block name="head"}{/block}
{block name="head-css"}{/block}
{block name="head-js"}{/block}
<script>
const strPcPath = `{$strPcPath}`;
</script>
</head>
<body>
@@ -20,18 +23,18 @@
<div class="ibody">
<!--搜索部分 start-->
<div class="wrap1200 logo iMod">
<a href="/pc/user" class="fl imotie">个人中心</a>
<a href="{$strPcPath}/user" class="fl imotie">个人中心</a>
<ul class="iUl">
<li>
<a href="/pc/">首页</a>
<a href="{$strPcPath}/">首页</a>
</li>
<li>
<a href="/pc/user">个人中心</a>
<a href="{$strPcPath}/user">个人中心</a>
</li>
<li class="accounts">
<a href="javaScript:;">账户设置</a>
<p style="display: none;">
<a href="/pc/user">个人信息</a>
<a href="{$strPcPath}/user">个人信息</a>
<!-- <a href="/user/user/password.html">修改密码</a> -->
</p>
</li>
@@ -49,11 +52,11 @@
<div class="login_after" id="mod_login_after">
<span class="yh">
<img src="/template/kuangyu/user/web/images/user-icon.png" alt="123456">
<a href="/pc/user">123456</a>
<a href="{$strPcPath}/user">123456</a>
</span>
<ul class="xiala">
<li><i class="iconfont"></i><a href="/pc/bookshelf">我的书架</a></li>
<li><i class="iconfont"></i><a href="/pc/user">个人中心</a></li>
<li><i class="iconfont"></i><a href="{$strPcPath}/bookshelf">我的书架</a></li>
<li><i class="iconfont"></i><a href="{$strPcPath}/user">个人中心</a></li>
<!-- <li><i class="iconfont"></i><a href="/user/user/logout">退出</a></li> -->
</ul>
</div>
@@ -94,12 +97,12 @@
</p>
<ul>
<li>
<a href="/pc/bookshelf">
<a href="{$strPcPath}/bookshelf">
<i class="iconfont"></i>
我的书架 </a>
</li>
<li>
<a href="/pc/history">
<a href="{$strPcPath}/history">
<i class="iconfont"></i>
最近阅读 </a>
</li>

View File

@@ -2,8 +2,8 @@
# grok 推荐
``
推荐URL/pc/shuku/nansheng/dushixiuxian/lianzai/1
全部URL/pc/shuku/all/all/all/1
推荐URL{$strPcPath}/shuku/nansheng/dushixiuxian/lianzai/1
全部URL{$strPcPath}/shuku/all/all/all/1
理由:
all 提供语义支持SEO友好。
拼音关键词(如 nansheng、lianzai直接优化中文搜索。

View File

@@ -94,10 +94,9 @@ class DomainModel extends BaseModel
* @param string $strKey
* @return void
*/
public function getFomartSubject($strKey, $strDiff = '')
public function getFomartSubject($strKey, $strDiff = '', bool $boolJoin = true)
{
$intSfgId = $this->t_cfg->{$strKey}['sfg_id'];
$SubjectFomartModel = NULL;
$arrAllSubjectFomartModel = SubjectFomartModel::getAllSubjectFomartOnCacheBySfgId($intSfgId);
@@ -109,11 +108,14 @@ class DomainModel extends BaseModel
$strController = request()->controller();
$strAction = request()->action();
$strUUId = sprintf('%s-%s-%s-%s-%s', $strDomain, $strController, $strAction, $strKey, $strDiff);
if ($boolJoin) {
$strUUId = sprintf('%s-%s-%s-%s-%s', $strDomain, $strController, $strAction, $strKey, $strDiff);
} else {
$strUUId = sprintf('%s-%s-%s', $strDomain, $strKey, $strDiff);
}
$arrConfigSubjectFomart = ConfigSubjectFomartModel::getInstance()->getConfigSubjectFomartByCsfKey($strUUId);
if (empty($arrConfigSubjectFomart)) {
$intKey = array_rand($arrAllSubjectFomartModel);
@@ -124,17 +126,22 @@ class DomainModel extends BaseModel
'csf_key' => $strUUId,
'sf_id' => $SubjectFomartModel->sf_id,
]);
} else {
$intSfId = $arrConfigSubjectFomart['sf_id'];
foreach ($arrAllSubjectFomartModel as $objTemp) {
if ($objTemp->sf_id == $intSfId) {
$SubjectFomartModel = $objTemp;
break;
}
}
}
return $SubjectFomartModel->sf_val;
return $SubjectFomartModel->sf_val ?? '';
}
@@ -148,8 +155,7 @@ class DomainModel extends BaseModel
{
$Request = request();
$strSfVal = $Request->DomainModel->getFomartSubject($strKey);
$strSfVal = $Request->DomainModel->getFomartSubject($strKey,'',false);
$arrKeys = [];
$arrVals = [];
foreach ($arrArgs as $strKey => $strVal) {