This commit is contained in:
Default
2025-04-07 20:18:03 +08:00
parent ba168ff55c
commit df4278d1d8

View File

@@ -82,11 +82,11 @@ class Novel extends BaseController
'strDescription' => $strDescription, 'strDescription' => $strDescription,
'strPageCode' => 'rank' 'strPageCode' => 'rank'
]); ]);
if ($boolIsMobile) {
return View::fetch();
} else { $strView = $boolIsMobile ? '' : 'pc/getNovelRank';
return View::fetch('pc/getNovelRank');
} return $this->rending($strView);
} }
/** /**
@@ -170,8 +170,8 @@ class Novel extends BaseController
// 更新值 // 更新值
ConverterMovel::setVal([ ConverterMovel::setVal([
'intPage' => $intPage, 'intPage' => $intPage,
'strNovelSex' => $arrSexChinese[$strGender], 'strNovelSex' => $arrSexChinese[$strGender],
'strNovelCategoryName' => str_replace("小说", "", $strSearchCategory), 'strNovelCategoryName' => str_replace("小说", "", $strSearchCategory),
'strNovelStatus' => $strSearchStatus, 'strNovelStatus' => $strSearchStatus,
]); ]);
@@ -199,8 +199,7 @@ class Novel extends BaseController
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
return $this->rending($strTemplate);
return View::fetch($strTemplate);
} }
/** /**
@@ -262,11 +261,11 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch();
} else { $strView = $boolIsMobile ? '' : 'pc/getNovelChannel';
return View::fetch('pc/getNovelChannel');
} return $this->rending($strView);
} }
/** /**
@@ -414,7 +413,7 @@ class Novel extends BaseController
'strNovelName' => $arrNovel['og_novel_book_name'], 'strNovelName' => $arrNovel['og_novel_book_name'],
'strNovelAuthor' => $arrNovel['og_novel_author'], 'strNovelAuthor' => $arrNovel['og_novel_author'],
'strNovelCategoryName' => $arrNovel['og_novel_category'], 'strNovelCategoryName' => $arrNovel['og_novel_category'],
'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生', 'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生',
'strNovelStatus' => $arrNovel['og_novel_status'], 'strNovelStatus' => $arrNovel['og_novel_status'],
'strNovelDescription' => $arrNovel['n_page_description'], 'strNovelDescription' => $arrNovel['n_page_description'],
]); ]);
@@ -444,13 +443,11 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch('getNovelInfo'); $strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo';
} else {
return View::fetch('pc/getNovelInfo'); return $this->rending($strView);
}
} }
/** /**
@@ -511,7 +508,7 @@ class Novel extends BaseController
'strNovelName' => $arrNovel['og_novel_book_name'], 'strNovelName' => $arrNovel['og_novel_book_name'],
'strNovelAuthor' => $arrNovel['og_novel_author'], 'strNovelAuthor' => $arrNovel['og_novel_author'],
'strNovelCategoryName' => $arrNovel['og_novel_category'], 'strNovelCategoryName' => $arrNovel['og_novel_category'],
'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生', 'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生',
'strNovelStatus' => $arrNovel['og_novel_status'], 'strNovelStatus' => $arrNovel['og_novel_status'],
'strNovelDescription' => $arrNovel['n_page_description'], 'strNovelDescription' => $arrNovel['n_page_description'],
]); ]);
@@ -536,11 +533,10 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch(); $strView = $boolIsMobile ? '' : 'pc/getNovelInfo';
} else {
return View::fetch('pc/getNovelInfo'); return $this->rending($strView);
}
} }
/** /**
@@ -626,11 +622,10 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch('getNovelChapter'); $strView = $boolIsMobile ? 'getNovelChapter' : 'pc/getNovelChapter';
} else {
return View::fetch('pc/getNovelChapter'); return $this->rending($strView);
}
} }
@@ -702,11 +697,10 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch(); $strView = $boolIsMobile ? '' : 'pc/getNovelChapter';
} else {
return View::fetch('pc/getNovelChapter'); return $this->rending($strView);
}
} }
/** /**
@@ -754,7 +748,7 @@ class Novel extends BaseController
// 更新值 // 更新值
ConverterMovel::setVal([ ConverterMovel::setVal([
'intPage' => $intPage, 'intPage' => $intPage,
'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生', 'strNovelSex' => $arrNovel['category_sex'] == 'man' ? '男生' : '女生',
'strNovelName' => $arrNovel['og_novel_book_name'], 'strNovelName' => $arrNovel['og_novel_book_name'],
'strNovelAuthor' => $arrNovel['og_novel_author'], 'strNovelAuthor' => $arrNovel['og_novel_author'],
'strNovelCategoryName' => $arrNovel['og_novel_category'], 'strNovelCategoryName' => $arrNovel['og_novel_category'],
@@ -783,11 +777,11 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) {
return View::fetch();
} else { $strView = $boolIsMobile ? '' : 'pc/getNovelChapterAll';
return View::fetch('pc/getNovelChapterAll');
} return $this->rending($strView);
} }
/** /**
@@ -832,9 +826,9 @@ class Novel extends BaseController
ConverterMovel::setVal([ ConverterMovel::setVal([
'intPage' => $intPage, 'intPage' => $intPage,
'strSearchKeywords' => $strSearchKeywords, 'strSearchKeywords' => $strSearchKeywords,
// FIXED 如果不知道怎么做,就不要用这个模板,你现在太过依赖这个模板,这个模板如果是一个刚毕业的大学生的垃圾论文项目,你也被他的四维锁死? // FIXED 如果不知道怎么做,就不要用这个模板,你现在太过依赖这个模板,这个模板如果是一个刚毕业的大学生的垃圾论文项目,你也被他的四维锁死?
// 这个和模板没有关系, 昨天 grok 使用超限制了使用you.com 提供的 tkd 设计,它设计的 tkd模板 需要的 字段比较多,那几个 性别 和 分类 放在搜索是不太合理 // 这个和模板没有关系, 昨天 grok 使用超限制了使用you.com 提供的 tkd 设计,它设计的 tkd模板 需要的 字段比较多,那几个 性别 和 分类 放在搜索是不太合理
// 现在改了使用grok 设计的 ai 记录在 app/home/view/kuangyu/推广SEO过程设计记录/TKD/搜索页Tkd.md // 现在改了使用grok 设计的 ai 记录在 app/home/view/kuangyu/推广SEO过程设计记录/TKD/搜索页Tkd.md
]); ]);
$strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE'); $strTitleTemplate = $Request->DomainModel->getFomartSubject(getFomartSubjectKey(__METHOD__) . '@TITLE');
@@ -856,12 +850,10 @@ class Novel extends BaseController
'strKeywords' => $strKeywords, 'strKeywords' => $strKeywords,
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
$strView = $boolIsMobile ? '' : 'pc/getSearchNovel';
if ($boolIsMobile) { return $this->rending($strView);
return View::fetch();
} else {
return View::fetch('pc/getSearchNovel');
}
} }
/** /**