From b8dba786ca7be6df77967988d659f45c02d28f71 Mon Sep 17 00:00:00 2001 From: make Date: Tue, 13 May 2025 17:24:33 +0800 Subject: [PATCH] debug --- code/app/home/view/default/pc/user/index.html | 49 +++++++++++++++++++ code/app/home/view/shikong/pc/user/index.html | 49 +++++++++++++++++++ .../view/xiongMao/pc/getNovelChannel.html | 0 code/app/model/DomainModel.php | 6 +++ code/app/services/VideoService.php | 2 +- 5 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 code/app/home/view/default/pc/user/index.html create mode 100644 code/app/home/view/shikong/pc/user/index.html create mode 100644 code/app/home/view/xiongMao/pc/getNovelChannel.html diff --git a/code/app/home/view/default/pc/user/index.html b/code/app/home/view/default/pc/user/index.html new file mode 100644 index 0000000..3384ec2 --- /dev/null +++ b/code/app/home/view/default/pc/user/index.html @@ -0,0 +1,49 @@ +{extend name="basePc" /} +{block name="title"}我的阅读记录{/block} +{block name="keywords"}我的阅读记录{/block} +{block name="description"}我的阅读记录{/block} +{block name="head"} + + + + + + + +{block name="head-js"}{/block} + + +{block name="body-class"}novel_home{/block} + +{block name="main"} + +
+
+
+

阅读记录

+
+ +
+
+
+ + +{/block} + +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/shikong/pc/user/index.html b/code/app/home/view/shikong/pc/user/index.html new file mode 100644 index 0000000..3384ec2 --- /dev/null +++ b/code/app/home/view/shikong/pc/user/index.html @@ -0,0 +1,49 @@ +{extend name="basePc" /} +{block name="title"}我的阅读记录{/block} +{block name="keywords"}我的阅读记录{/block} +{block name="description"}我的阅读记录{/block} +{block name="head"} + + + + + + + +{block name="head-js"}{/block} + + +{block name="body-class"}novel_home{/block} + +{block name="main"} + +
+
+
+

阅读记录

+
+ +
+
+
+ + +{/block} + +{block name="customize"} + +{/block} \ No newline at end of file diff --git a/code/app/home/view/xiongMao/pc/getNovelChannel.html b/code/app/home/view/xiongMao/pc/getNovelChannel.html new file mode 100644 index 0000000..e69de29 diff --git a/code/app/model/DomainModel.php b/code/app/model/DomainModel.php index ca817be..0066382 100644 --- a/code/app/model/DomainModel.php +++ b/code/app/model/DomainModel.php @@ -101,6 +101,12 @@ class DomainModel extends BaseModel */ 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']; $SubjectFomartModel = NULL; diff --git a/code/app/services/VideoService.php b/code/app/services/VideoService.php index e8adaa6..1496ecb 100644 --- a/code/app/services/VideoService.php +++ b/code/app/services/VideoService.php @@ -632,7 +632,7 @@ class VideoService public function generateSearchPager(array $arrParams, array $arrSort, array $arrVideo): array { $strKey = $arrParams['key']; - $intPage = $arrVideo['page']; + $intPage = $arrVideo['page'] ?? 1; $intLimit = $arrVideo['limit']; $intButtomNum = $arrParams['button_num']; $strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}');