Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev

This commit is contained in:
make
2025-04-11 20:52:36 +08:00
4 changed files with 63 additions and 60 deletions

View File

@@ -57,7 +57,7 @@ class Novel extends BaseController
$strStatus = '已完结';
$strKey = sprintf('%s:PC:NOVEL:RANK:%s:SEX:%s:%s', $Request->DomainModel->d_domain, 'total', 0, 'finished');
$arrEdnNovelRankNovel = $NovelModel->getRankNovelOnCache($strKey, 10, 0, 'total', $strStatus);
// Title 模板
ConverterMovel::setVal([
'intPage' => 1,
@@ -241,7 +241,7 @@ class Novel extends BaseController
$strKey = sprintf('%s:PC:Novel:Channel:Latest:%s', $Request->DomainModel->d_domain, $intType);
$intCount = 20;
$arrNewsUpdateNovel = $NovelModel->getCommonNovelOnCache($strKey, $intLifeTime, $intCount, $intType, NULL, ['og_novel_update_time' => -1]);
// echo "<pre>";
// var_dump($arrNewsUpdateNovel);exit;
// TODO og_description 改成 og_description
@@ -597,7 +597,7 @@ class Novel extends BaseController
'strNovelCategoryName' => $arrNovel['og_novel_category'],
'strNovelStatus' => $arrNovel['og_novel_status'],
'strNovelDescription' => $arrNovel['og_description'],
'strChapterDescription' => $strChapterDescription,
'strChapterDescription' => $strChapterDescription,
'strNovelChapterName' => $arrChapter['name'] ?? '',
'strNovelChapterSort' => $arrChapter['c_sort_num'] ?? '',
]);
@@ -668,6 +668,8 @@ class Novel extends BaseController
$strChapterDescription = strip_tags($arrChapter['content']);
$intCount = mb_strlen($strChapterDescription);
$strChapterDescription = ($intCount > 50) ? mb_substr($strChapterDescription, 0, 50) : $strChapterDescription;
$arrChapter['content'] = base64_encode($arrChapter['content']);
}
$arrCategoryAll = CategoryModel::$arrCategoryAll;
@@ -680,7 +682,7 @@ class Novel extends BaseController
'strNovelCategoryName' => $arrNovel['og_novel_category'],
'strNovelStatus' => $arrNovel['og_novel_status'],
'strNovelDescription' => $arrNovel['og_description'],
'strChapterDescription' => $strChapterDescription,
'strChapterDescription' => $strChapterDescription,
'strNovelChapterName' => $arrChapter['name'],
'strNovelChapterSort' => $arrChapter['c_sort_num'],
]);