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

This commit is contained in:
Default
2025-04-11 23:43:10 +08:00
7 changed files with 1292 additions and 458 deletions

View File

@@ -7,360 +7,197 @@ use app\home\controller\Novel;
use app\home\controller\User;
use think\facade\Route;
# 路由别名,可以忽略 ->ext('html')
// Route::alias("/index.html", "/")->append(['boolIsMobile' => true]);
// Route::alias("/pc/index.html", "/")->append(['boolIsMobile' => false]);
/**
* 首页
*/
Route::get("/", [Index::class, 'index'])->ext('html')->append(['boolIsMobile' => true]);
Route::get("/pc/", [Index::class, 'getPcIndex'])->append(['boolIsMobile' => false]);
// Route::get("/index", [Index::class,'index'])->ext('html')->append(['boolIsMobile' => true]);
// Route::get("/pc/index", [Index::class,'getPcIndex'])->ext('html')->append(['boolIsMobile' => false]);
//排行榜
Route::get('/paihang/all', [Novel::class, 'getNovelRank'])->append(['boolIsMobile' => true]);
Route::get("/pc/paihang/all", [Novel::class, 'getNovelRank'])->append(['boolIsMobile' => false]);
/**
* 男生/女生 - grok 推荐最优方案
*
*/
Route::get('/nansheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => true, 'strChannel' => 'boys']);
Route::get('/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => true, 'strChannel' => 'girls']);
Route::get('/pc/nansheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => false, 'strChannel' => 'boys']);
Route::get('/pc/nvsheng-xiaoshuo', [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => false, 'strChannel' => 'girls']);
/**
* 书库 - grok 推荐最优方案
* /shuku/strGender/category/status/page
*/
Route::get('/shuku/:strGender/:strCategory/:strStatus/page:intPage', [Novel::class, 'getLibrary'])
->pattern([
'strGender' => 'nansheng-xiaoshuo|nvsheng-xiaoshuo|all',
'strCategory' => '[a-z\-]+',
'strStatus' => 'all|lianzai|wanjie',
'intPage' => '\d+'
])
->append(['boolIsMobile' => true]);
Route::get('/pc/shuku/:strGender/:strCategory/:strStatus/page:intPage', [Novel::class, 'getLibrary'])
->pattern([
'strGender' => 'nansheng-xiaoshuo|nvsheng-xiaoshuo|all',
'strCategory' => '[a-z\-]+',
'strStatus' => 'all|lianzai|wanjie',
'intPage' => '\d+'
])
->append(['boolIsMobile' => false]);
Route::get('/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => true]);
Route::get('/pc/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile' => false]);
/**
* 小说章节
* /xiaoshuo/小说拼音-小说id/zhang-章节排序/章节分页
* /xiaoshuo/小说拼音-小说id/di-章节排序-zhang/章节分页
*/
Route::get('/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
->append(['boolIsMobile' => true, 'intUriType' => 1])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+','intChapterSort' => '\d+', 'intChapterPage' => '\d+']);
Route::get('/pc/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter'])
->append(['boolIsMobile' => false, 'intUriType' => 1])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'intChapterSort' => '\d+', 'intChapterPage' => '\d+']);
/**
* 最新章节-特殊页面处理
*/
Route::get('/pc/books/:name-:n_id/chapter/latest', [Novel::class, 'getNovelLatestChapter'])
->append(['boolIsMobile' => false, 'intUriType' => 1])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
/**
* 小说目录页面
* /xiaoshuo/[小说拼音]-[小说id]/mulu/order/[page]
*/
Route::get('/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::class, 'getNovelChapterAll'])
->append(['boolIsMobile' => true, 'intUriType' => 1])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
Route::get('/pc/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]', [Novel::class, 'getNovelChapterAll'])
->append(['boolIsMobile' => false, 'intUriType' => 1])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
/**
* kan-小说详情
*/
Route::get('/pc/kan-xiaoshuo/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 2])
->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/kan-xiaoshuo/:name-:n_id-:n_forge_id', [Novel::class, 'getKanNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 2])
->pattern(['n_id' => '\d+','n_forge_id' => '\d+', 'name' => '[\w-]+',]);
/**
* 小说详情
* /book/{strPinYin}-{intNId}
* /novel/{strPinYin}-{intNId}
* /xiaoshuo/{strPinYin}-{intNId}
* /book-{strPinYin}-{intNId}
* /novel-{strPinYin}-{intNId}
* /xiaoshuo-{strPinYin}-{intNId}
*/
Route::get('/pc/book/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 1])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/pc/novel/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 2])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/pc/xiaoshuo/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 2])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/pc/book-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 3])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/pc/novel-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 3])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
Route::get('/pc/xiaoshuo-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => false, 'intUriType' => 3])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
//h5
Route::get('/book/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 1])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
Route::get('/novel/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 2])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
Route::get('/xiaoshuo/:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 2])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
Route::get('/book-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 3])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
Route::get('/novel-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 3])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
Route::get('/xiaoshuo-:name-:n_id', [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => true, 'intUriType' => 3])
->pattern(['n_id' => '\d+','name' => '[\w-]+',]);
// 搜索小说
Route::get('/search', [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => true]);
Route::get('/pc/search', [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => false]);
// 小说用户中心
Route::get('/user', [User::class, 'Index'])->append(['boolIsMobile' => true]);
Route::get('/pc/user', [User::class, 'Index'])->append(['boolIsMobile' => false]);
// 书架
Route::get('/bookshelf', [User::class, 'getBookShelf'])->append(['boolIsMobile' => true]);
Route::get('/pc/bookshelf', [User::class, 'getBookShelf'])->append(['boolIsMobile' => false]);
// 历史记录
Route::get('/history', [User::class, 'getHistory'])->append(['boolIsMobile' => true]);
Route::get('/pc/history', [User::class, 'getHistory'])->append(['boolIsMobile' => false]);
// 文章 列表
Route::get('/article/list-[:intCategoryId]-[:intPage]', [Novel::class, 'getArticleList'])->append(['boolIsMobile' => true]);
Route::get('/pc/article/list-[:intCategoryId]-[:intPage]', [Novel::class, 'getArticleList'])->append(['boolIsMobile' => false]);
Route::get('/article/list', [Novel::class, 'getArticleList'])->append(['boolIsMobile' => true]);
Route::get('/pc/article/list', [Novel::class, 'getArticleList'])->append(['boolIsMobile' => false]);
// 文章 详情
Route::get('/article/info-:intArticleId', [Novel::class, 'getArticleInfo'])->append(['boolIsMobile' => true]);
Route::get('/pc/article/info-:intArticleId', [Novel::class, 'getArticleInfo'])->append(['boolIsMobile' => false]);
//分类 - 其它模板
// Route::get('class', 'Novel/getNovelCategory')->ext('html')->append(['boolIsMobile' => true]);
// Route::get('/pc/class', 'Novel/getNovelCategory')->ext('html')->append(['boolIsMobile' => false]);
// // //分类 使用模板:xmttxs
// // Route::get('/books', 'Novel/getNovelCategory')->ext('html')->append(['boolIsMobile' => true]);
// // Route::get('/pc/books', 'Novel/getNovelCategory')->ext('html')->append(['boolIsMobile' => false]);
// // Route::get('/books/[:intCategoryId]-[:intPage]', 'Novel/getNovelCategory')->ext('html')->append(['boolIsMobile' => true]);
// Route::get('/pc/fenlei/<intCategoryId]-[:intPage]', 'Novel/getNovelCategory')
// ->append(['boolIsMobile' => false])
// ->pattern(['intCategoryId' => '\d+','intPage' => '\d+',])
// ->ext('html');
// if(config('app.default_index_info_isopen')){
// # SEO首页-此为了 那些那详情页做首页推广的站点
// Route::get("/", "Novel/getDetail")->name("Novel@getDetail")->cache('/index.html', 600, 'index');
// // 影视首页
// Route::get("/nindex", "Novel/Index")->name("Novel@Index")->cache('/nindex.html', 600, 'nindex');
// }else{
// Route::get("/", "Novel/Index")->name("Novel@Index")->cache('/index.html', 600, 'index');
// }
// # 定义所有分类路由
// $arrRoutes = [
// # 小说推荐
// [
// 'class'=>[Novel::class,'getRankList'],
// 'name'=>'Novel@getTuijianList',
// 'path'=>[
// [::class,'tj/:intTjdj-[:intPage]'],
// [::class,'tuijian/:intTjdj-[:intPage]'],
// [::class,'recommend/:intTjdj-[:intPage]'],
// [::class,'nice/:intTjdj-[:intPage]'],
// [::class,'good/:intTjdj-[:intPage]'],
// [::class,'推荐/:intTjdj-[:intPage]'],
// ],
// ],
// # 小说分类
// [
// 'class'=>[Novel::class,'getCategoryList'],
// 'name'=>'Novel@getCategoryList',
// 'path'=>[
// [::class,'list/:intCId-:intSort-:intStatus-[:intPage]'],
// [::class,'fenlei/:intCId-:intSort-:intStatus-[:intPage]'],
// [::class,'class/:intCId-:intSort-:intStatus-[:intPage]'],
// [::class,'type/:intCId-:intSort-:intStatus-[:intPage]'],
// [::class,'leixin/:intCId-:intSort-:intStatus-[:intPage]'],
// [::class,'小说分类/:intCId-:intSort-:intStatus-[:intPage]'],
// ],
// ],
// # 小说排行
// [
// 'class'=>[Novel::class,'getNovelRankList'],
// 'name'=>'Novel@getNovelRankList',
// 'path'=>[
// [::class,'paihang/:intCId-:intSort-[:intPage]'],
// [::class,'paihanbang/:intCId-:intSort-[:intPage]'],
// [::class,'rank/:intCId-:intSort-[:intPage]'],
// [::class,'sort/:intCId-:intSort-[:intPage]'],
// [::class,'pb/:intCId-:intSort-[:intPage]'],
// [::class,'排行榜/:intCId-:intSort-[:intPage]'],
// ],
// ],
// # 小说章节
// [
// 'class'=>[Novel::class,'getReader'],
// 'name'=>'Novel@getReader',
// 'path'=>[
// [::class,'xq/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'xiaoshuo/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'novel/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'info/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'shu/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'小说/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'book/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'kan/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'show/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'yuedu/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'see/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// [::class,'相关/:intNovelId/:intZhangJiePaiXu-[:strSort]'],
// ],
// ],
// # 小说详情
// [
// 'class'=>[Novel::class,'getDetail'],
// 'name'=>'Novel@getDetail',
// 'path'=>[
// [::class,'xq/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'xiaoshuo/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'novel/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'info/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'shu/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'小说/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'book/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'kan/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'show/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'yuedu/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'see/:intNovelId-[:intCurrentPage]-[:strSort]'],
// [::class,'相关/:intNovelId-[:intCurrentPage]-[:strSort]'],
// ],
// ],
// # 搜索 - 小说
// [
// [class'=>'Search::class,'getNovel'],
// 'name'=>'Search@getNovel',
// 'path'=>[
// [::class,'search'],
// ],
// ],
// # 书架
// [
// [class'=>'Search::class,'getShujia'],
// [name'=>'Search::class,'getShujia'],
// 'path'=>[
// [::class,'shujia'],
// ],
// ],
// # 收藏
// [
// [class'=>'Search::class,'addSc'],
// [name'=>'Search::class,'addSc'],
// 'path'=>[
// [::class,'sc'],
// ],
// ],
// ];
// // Route::get('/sc', [Novel::class,'addSc'])
// // ->middleware('Throttle:5,60') // 限制 1 分钟内最多 5 次
// // ->name('Novel@addSc');
// # 遍历所有分类,注册路由
// foreach ($arrRoutes as $Routes) {
// foreach ($Routes['path'] as $strPath) {
// Route::get($strPath, $Routes['class'])
// ->name($Routes['name'])
// ->pattern([
// 'intTjdj' => '\d+', # 推荐等级
// 'intPage' => '\d+', # 分页
// 'intCId' => '\d+',
// 'intSort' => '\d+',
// 'intNovelId' => '\d+',
// 'intZhangJiePaiXu' => '\d+',
// 'strSort' => '\w+',
// 'intStatus' => '\d+',
// ])
// ->cache([$strPath, 3600, strtoupper($strPath) . '_PAGE']);
// }
// }
// 路由配置文件
$arrRoutes = [
// H5/PC 端前缀
'prefixes' => [
'pc' => ['/pc', '/web', '/desktop', '/index', '/shouye', '/zhuomian'],
'h5' => '',
],
// 通用路径别名
'paths' => [
// 章节相关路径
'chapter' => [
'/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/xiaoshuo-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/novel-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
'/book-:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]',
],
// 最新章节-特殊页面处理
'latest' => [
'/xiaoshuo/:name-:n_id/chapter/latest',
'/novel/:name-:n_id/chapter/latest',
'/book/:name-:n_id/chapter/latest',
'/xiaoshuo-:name-:n_id/chapter/latest',
'/novel-:name-:n_id/chapter/latest',
'/book-:name-:n_id/chapter/latest',
],
// 目录相关路径
'catalog' => [
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/book/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/xiaoshuo/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/novel/:name-:intNovelId/mulu/:strOrder/[:intPage]',
'/book/:name-:intNovelId/mulu/:strOrder/[:intPage]',
],
// 伪小说详情相关路径
'kan-novel' => [
'/kan-xiaoshuo/:name-:n_id',
'/show-novel/:name-:n_id',
'/seo-book/:name-:n_id',
'/show-xiaoshuo-:name-:n_id',
'/see-novel-:name-:n_id',
'/good-book-:name-:n_id',
],
// 小说详情相关路径
'novel' => [
'/xiaoshuo/:name-:n_id',
'/novel/:name-:n_id',
'/book/:name-:n_id',
'/xiaoshuo-:name-:n_id',
'/novel-:name-:n_id',
'/book-:name-:n_id',
],
// 书库
'library' => [
'/shuku/:strGender/:strCategory/:strStatus/page:intPage',
'/books/:strGender/:strCategory/:strStatus/page:intPage',
'/library/:strGender/:strCategory/:strStatus/page:intPage',
'/fenlei/:strGender/:strCategory/:strStatus/page:intPage',
'/class/:strGender/:strCategory/:strStatus/page:intPage',
'/category/:strGender/:strCategory/:strStatus/page:intPage',
],
// 书库首页
'library-index' => [
'/shuku/all',
'/books/all',
'/library/all',
'/fenlei/all',
'/class/all',
'/category/all',
],
//排行榜
'rank' => ['/paihang/all', '/rank/all', '/paihang-quan', '/top/all', '/paihang-bang', '/ranks/all'],
// 男生
'boys' => ['/nansheng-xiaoshuo', '/boys-novel', '/nansheng-shu', '/man-read', '/nansheng-book', '/male-novels'],
//女生
'girls' => ['/nvsheng-xiaoshuo', '/girls-novel', '/nvsheng-shu', '/woman-read', '/nvsheng-book', '/female-novels'],
//搜索
'search' => ['/search', '/explore', '/sousuo', '/find', '/query', '/keywords'],
// 用户中心
'user' => ['/user', '/my-account', '/profile', '/yonghu', '/wode-zhongxin', '/personal-center'],
//书架
'bookshelf' => ['/bookshelf', '/book-shelf', '/reading-shelf', '/shujia', '/yuedu-shujia', '/book-collection'],
//历史记录
'history' => ['/history', '/reading-history', '/read-record', '/lishi', '/yuedu-lishi', '/browse-past'],
// 首页
'index' => ['/'],
],
];
// 遍历路由配置,动态注册 H5 和 PC 路由
foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
$prefixes = is_array($prefixes) ? $prefixes : [$prefixes];
$boolIsMobile = $platform === 'h5';
foreach ($prefixes as $strPath) {
foreach ($arrRoutes['paths'] as $key => $arrUrl) {
foreach ($arrUrl as $strUrl) {
$strRoute = $strPath . $strUrl;
switch ($key) {
case 'latest':
//最新章节
Route::get($strRoute, [Novel::class, 'getNovelLatestChapter'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
break;
case 'chapter':
//章节
Route::get($strRoute, [Novel::class, 'getNovelChapter'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'intChapterSort' => '\d+', 'intChapterPage' => '\d+']);
break;
case 'kan-novel':
//伪造小说详情
Route::get($strRoute, [Novel::class, 'getKanNovelInfo'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern(['n_id' => '\d+', 'n_forge_id' => '\d+', 'name' => '[\w-]+',]);
break;
case 'novel':
//小说详情
Route::get($strRoute, [Novel::class, 'getNovelInfo'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern(['n_id' => '\d+', 'name' => '[\w-]+',]);
break;
case 'catalog':
//目录
Route::get($strRoute, [Novel::class, 'getNovelChapterAll'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'strOrder' => 'zheng|dao', 'intPage' => '\d+']);
break;
case 'library':
//书库/分类
Route::get($strRoute, [Novel::class, 'getLibrary'])
->append(['boolIsMobile' => $boolIsMobile])
->pattern([
'strGender' => 'nansheng-xiaoshuo|nvsheng-xiaoshuo|all',
'strCategory' => '[a-z\-]+',
'strStatus' => 'all|lianzai|wanjie',
'intPage' => '\d+'
]);
break;
case 'library-index':
//书库/分类首页
Route::get($strRoute, [Novel::class, 'getLibrary'])->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'rank':
//排行榜
Route::get($strRoute, [Novel::class, 'getNovelRank'])->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'boys':
//男生
Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'boys']);
break;
case 'girls':
//女生
Route::get($strRoute, [Novel::class, 'getNovelChannel'])->append(['boolIsMobile' => $boolIsMobile, 'strChannel' => 'girls']);
break;
case 'search':
//搜素
Route::get($strRoute, [Novel::class, 'getSearchNovel'])->ext('html')->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'user':
//用户中心
Route::get($strRoute, [User::class, 'Index'])->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'bookshelf':
//书架
Route::get($strRoute, [User::class, 'getBookShelf'])->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'history':
//历史记录
Route::get($strRoute, [User::class, 'getHistory'])->append(['boolIsMobile' => $boolIsMobile]);
break;
case 'index':
// 首页
if ($platform == 'h5') {
Route::get($strRoute, [Index::class, 'index'])->append(['boolIsMobile' => $boolIsMobile]);
}else{
Route::get($strRoute, [Index::class, 'getPcIndex'])->append(['boolIsMobile' => $boolIsMobile]);
}
break;
}
}
}
}
}

View File

@@ -17,6 +17,7 @@
<link rel="stylesheet" href="//at.alicdn.com/t/font_934628_byagqjb6vae.css" type="text/css">
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
<!-- <script src="/public/jquery/jquery-3.7.1.min.js"></script> -->
<script src="/public/js/yueduqsbs.js"></script>
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
@@ -112,8 +113,8 @@
</div>
<article id="chapterContent" class="read-article" style="font-size: 1.125rem">
<section class="read-section jsChapterWrapper" data-chapter-id="4b2d5aab58d71">
{$arrChapter.content|raw}
<script>document.writeln(qsbs.bb('{$arrChapter.content}'));</script>
</section>
</article>
{$arrGRM[5]|raw}

View File

@@ -66,6 +66,8 @@
}
}
</script>
<script src="/public/js/yueduqsbs.js"></script>
</head>
<body class="theme-0 w800" data-bid='/pc/xiaoshuo/name-1'>
@@ -202,7 +204,7 @@
</div>
<div class="read-content j_readContent">
{if $arrChapter && $arrChapter.content}
{$arrChapter.content|raw }
<script>document.writeln(qsbs.bb('{$arrChapter.content}'));</script>
{/if}
</div>
</div>