This commit is contained in:
make
2025-05-13 17:24:33 +08:00
parent 9ad455786e
commit b8dba786ca
5 changed files with 105 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
{extend name="basePc" /}
{block name="title"}我的阅读记录{/block}
{block name="keywords"}我的阅读记录{/block}
{block name="description"}我的阅读记录{/block}
{block name="head"}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$strTitle??''}" />
<meta property="og:description" content="{$strDescription??''}" />
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}" />
<meta property="og:type" content="article" />
<!-- 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
"@type": "article",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"datePublished": "{:date('Y-m-d')}"
}
</script>
{block name="head-js"}{/block}
{block name="body-class"}novel_home{/block}
{block name="main"}
<div class="container">
<div class="row">
<div class="layout layout3 layout-col3 fl">
<h2 class="layout-tit">阅读记录</h2>
<div class="layout layout-col3" id="shujiaContainer"></div>
</div>
</div>
</div>
</div>
{/block}
{block name="customize"}
<script>
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
// 调用展示书架功能
displayHistory();
</script>
{/block}

View File

@@ -0,0 +1,49 @@
{extend name="basePc" /}
{block name="title"}我的阅读记录{/block}
{block name="keywords"}我的阅读记录{/block}
{block name="description"}我的阅读记录{/block}
{block name="head"}
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$strTitle??''}" />
<meta property="og:description" content="{$strDescription??''}" />
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}" />
<meta property="og:type" content="article" />
<!-- 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://{$DomainModel->d_domain}{$strBookShelfUrlTemp}",
"@type": "article",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"datePublished": "{:date('Y-m-d')}"
}
</script>
{block name="head-js"}{/block}
{block name="body-class"}novel_home{/block}
{block name="main"}
<div class="container">
<div class="row">
<div class="layout layout3 layout-col3 fl">
<h2 class="layout-tit">阅读记录</h2>
<div class="layout layout-col3" id="shujiaContainer"></div>
</div>
</div>
</div>
</div>
{/block}
{block name="customize"}
<script>
const strNovelUrlTemp = `{site:replace code="NOVEL_INFO_URL"}`;
const strNovelChapterUrlTemp = `{site:replace code="CONTENT_INFO_URL"}`;
const strSearchUrlTemp = `{site:replace code="SEARCH_INFO_URL"}`;
// 调用展示书架功能
displayHistory();
</script>
{/block}

View File

@@ -101,6 +101,12 @@ class DomainModel extends BaseModel
*/ */
public function getFomartSubjectEx(string $strKey, string $strDomain, string $strController, string $strAction, $strDiff = '', bool $boolJoin = true): string public function getFomartSubjectEx(string $strKey, string $strDomain, string $strController, string $strAction, $strDiff = '', bool $boolJoin = true): string
{ {
if ( !array_key_exists($strKey, $this->t_cfg)) {
$strError = sprintf("t_cfg [%s] not found!", $strKey . $strDomain);
throw new \Exception($strError);
}
$intSfgId = $this->t_cfg[$strKey]['sfg_id']; $intSfgId = $this->t_cfg[$strKey]['sfg_id'];
$SubjectFomartModel = NULL; $SubjectFomartModel = NULL;

View File

@@ -632,7 +632,7 @@ class VideoService
public function generateSearchPager(array $arrParams, array $arrSort, array $arrVideo): array public function generateSearchPager(array $arrParams, array $arrSort, array $arrVideo): array
{ {
$strKey = $arrParams['key']; $strKey = $arrParams['key'];
$intPage = $arrVideo['page']; $intPage = $arrVideo['page'] ?? 1;
$intLimit = $arrVideo['limit']; $intLimit = $arrVideo['limit'];
$intButtomNum = $arrParams['button_num']; $intButtomNum = $arrParams['button_num'];
$strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}'); $strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}');