Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev
This commit is contained in:
@@ -14,6 +14,7 @@ use storage\StorageCore;
|
||||
use think\facade\View;
|
||||
use app\Request;
|
||||
use app\task\crawler\zw630\page\ChapterPage;
|
||||
use PhpOffice\PhpSpreadsheet\Calculation\Category;
|
||||
use template\page\CusteomPage02;
|
||||
|
||||
class Novel extends BaseController
|
||||
@@ -313,7 +314,7 @@ class Novel extends BaseController
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 小说详情-kan
|
||||
*
|
||||
@@ -322,7 +323,7 @@ class Novel extends BaseController
|
||||
*/
|
||||
public function getKanNovelInfo(Request $Request)
|
||||
{
|
||||
|
||||
|
||||
$intNId = $Request->param('n_id');
|
||||
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
@@ -372,7 +373,7 @@ class Novel extends BaseController
|
||||
// ConverterMovel::setVal("strNovelName", $strNovel);
|
||||
|
||||
// $strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__));
|
||||
|
||||
|
||||
// $strTitle = ConverterMovel::convert($strTitle);
|
||||
|
||||
View::assign([
|
||||
@@ -417,12 +418,15 @@ class Novel extends BaseController
|
||||
$ChapterModel = new ChapterModel;
|
||||
$arrLatestChapter = $ChapterModel->getLatestChapter($intNId);
|
||||
|
||||
$strFocus = '';
|
||||
// 要点
|
||||
$strFocus = strip_tags($arrLatestChapter['content']);
|
||||
$intCount = mb_strlen($strFocus);
|
||||
if ($intCount > 300) {
|
||||
$intPos = mt_rand(0, $intCount - 300);
|
||||
$strFocus = mb_substr($strFocus, $intPos, 300);
|
||||
if ($arrLatestChapter) {
|
||||
$strFocus = strip_tags($arrLatestChapter['content']);
|
||||
$intCount = mb_strlen($strFocus);
|
||||
if ($intCount > 300) {
|
||||
$intPos = mt_rand(0, $intCount - 300);
|
||||
$strFocus = mb_substr($strFocus, $intPos, 300);
|
||||
}
|
||||
}
|
||||
|
||||
// 最近五个章节
|
||||
@@ -449,7 +453,7 @@ class Novel extends BaseController
|
||||
ConverterMovel::setVal("strNovelName", $strNovel);
|
||||
|
||||
$strTitle = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__));
|
||||
|
||||
|
||||
$strTitle = ConverterMovel::convert($strTitle);
|
||||
|
||||
View::assign([
|
||||
@@ -552,13 +556,15 @@ class Novel extends BaseController
|
||||
$arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||
|
||||
|
||||
// 缺少数据
|
||||
// 分类:男生和女生所对应的分类,看导航展示
|
||||
// 这个小说的 分类拼音
|
||||
// 这个小说 是属于 女生还是男生
|
||||
// FIXME 分类:男生和女生所对应的分类,看导航展示
|
||||
// FIXED BY 已经修复
|
||||
$arrCategoryAll = CategoryModel::$arrCategoryAll;
|
||||
|
||||
// echo '<pre>';
|
||||
// var_dump($arrNovel);
|
||||
// FIXME 这个小说的 分类拼音
|
||||
// FIXED BY 已经修复
|
||||
|
||||
// FIXME 这个小说 是属于 女生还是男生
|
||||
// FIXED BY 已经修复
|
||||
|
||||
View::assign([
|
||||
'arrNovel' => $arrNovel,
|
||||
@@ -604,7 +610,7 @@ class Novel extends BaseController
|
||||
['c_sort_num' => 1, 'name' => '第5章', 'created_at' => '作者1'],
|
||||
['c_sort_num' => 1, 'name' => '第6章', 'created_at' => '作者1'],
|
||||
|
||||
|
||||
|
||||
];
|
||||
|
||||
View::assign([
|
||||
|
||||
Reference in New Issue
Block a user