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);
} }
/** /**
@@ -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);
} }
/** /**
@@ -446,11 +445,9 @@ class Novel extends BaseController
]); ]);
if ($boolIsMobile) { $strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo';
return View::fetch('getNovelInfo');
} else { return $this->rending($strView);
return View::fetch('pc/getNovelInfo');
}
} }
/** /**
@@ -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);
}
} }
/** /**
@@ -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);
} }
/** /**
@@ -857,11 +851,9 @@ class Novel extends BaseController
'strDescription' => $strDescription, 'strDescription' => $strDescription,
]); ]);
if ($boolIsMobile) { $strView = $boolIsMobile ? '' : 'pc/getSearchNovel';
return View::fetch();
} else { return $this->rending($strView);
return View::fetch('pc/getSearchNovel');
}
} }
/** /**