debug
This commit is contained in:
@@ -23,7 +23,6 @@ class Index extends BaseController
|
||||
public function index(Request $Request)
|
||||
{
|
||||
|
||||
// 获取路由附加的参数
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
$intTTL = 24 * 3600;
|
||||
|
||||
@@ -93,7 +92,6 @@ class Index extends BaseController
|
||||
*/
|
||||
public function getPcIndex(Request $Request)
|
||||
{
|
||||
// 获取路由附加的参数
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
$intTTL = 24 * 3600;
|
||||
@@ -104,8 +102,7 @@ class Index extends BaseController
|
||||
$strKey = sprintf('%s:PC:INDEX:TUIJIAN:%s', $Request->DomainModel->d_domain, 13);
|
||||
|
||||
$arrRecommendSerializationNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 13, 0, NULL);
|
||||
|
||||
|
||||
|
||||
// 推荐等级为9的完结的 随机12个小说
|
||||
$strKey = sprintf('%s:PC:INDEX:TUIJIAN:WANJIE:%s', $Request->DomainModel->d_domain, 12);
|
||||
$arrRecommendEndNovel = $NovelModel->getCommonNovelOnCache($strKey, $intTTL, 12, 0, "已完结");
|
||||
@@ -184,7 +181,6 @@ class Index extends BaseController
|
||||
|
||||
$strView = $boolIsMobile ? '' : 'pc/index';
|
||||
|
||||
// 生成多少个干扰吗
|
||||
$this->generateGrm(2, 0, 150);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
@@ -10,11 +10,8 @@ use app\model\ChapterModel;
|
||||
use app\model\ConverterMovel;
|
||||
use app\model\NovelClicksModel;
|
||||
use app\model\NovelModel;
|
||||
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
|
||||
@@ -60,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,
|
||||
@@ -204,8 +201,7 @@ class Novel extends BaseController
|
||||
|
||||
]);
|
||||
|
||||
// 生成多少个干扰吗
|
||||
$this->generateGrm(2, $strGender.'-'.$strCategory.'-'.$strStatus.'-'.$intPage, 30);
|
||||
$this->generateGrm(2, $strGender . '-' . $strCategory . '-' . $strStatus . '-' . $intPage, 30);
|
||||
return $this->rending($strTemplate);
|
||||
}
|
||||
|
||||
@@ -242,7 +238,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]);
|
||||
|
||||
|
||||
// 更新值
|
||||
ConverterMovel::setVal([
|
||||
'intPage' => 1,
|
||||
@@ -271,7 +267,6 @@ class Novel extends BaseController
|
||||
|
||||
|
||||
$strView = $boolIsMobile ? '' : 'pc/getNovelChannel';
|
||||
// 生成多少个干扰吗
|
||||
$this->generateGrm(2, $strNovelChannel, 50);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
@@ -458,7 +453,7 @@ class Novel extends BaseController
|
||||
|
||||
|
||||
$strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo';
|
||||
$this->generateGrm(2, $intNId.'-'.$intForgeId, 50);
|
||||
$this->generateGrm(2, $intNId . '-' . $intForgeId, 50);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
@@ -636,7 +631,7 @@ class Novel extends BaseController
|
||||
]);
|
||||
|
||||
$strView = $boolIsMobile ? 'getNovelChapter' : 'pc/getNovelChapter';
|
||||
$this->generateGrm(2, $intNId . '-' .$arrChapter['c_sort_num'] ?? 0, 20);
|
||||
$this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
@@ -711,7 +706,7 @@ class Novel extends BaseController
|
||||
]);
|
||||
|
||||
$strView = $boolIsMobile ? '' : 'pc/getNovelChapter';
|
||||
$this->generateGrm(2, $intNId . '-' .$arrChapter['c_sort_num'] ?? 0, 20);
|
||||
$this->generateGrm(2, $intNId . '-' . $arrChapter['c_sort_num'] ?? 0, 20);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
@@ -793,12 +788,12 @@ class Novel extends BaseController
|
||||
|
||||
if ($boolIsMobile) {
|
||||
$strView = '';
|
||||
$this->generateGrm(1, $intNId . '-' .$strOrder. '-' .$intPage, 110);
|
||||
$this->generateGrm(1, $intNId . '-' . $strOrder . '-' . $intPage, 110);
|
||||
} else {
|
||||
$strView = 'pc/getNovelChapterAll';
|
||||
$this->generateGrm(2, $intNId . '-' .$strOrder. '-' .$intPage, 110);
|
||||
$this->generateGrm(2, $intNId . '-' . $strOrder . '-' . $intPage, 110);
|
||||
}
|
||||
|
||||
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
@@ -868,7 +863,7 @@ class Novel extends BaseController
|
||||
]);
|
||||
|
||||
$strView = $boolIsMobile ? '' : 'pc/getSearchNovel';
|
||||
$this->generateGrm(2, $strSearchKeywords.$intPage, 20);
|
||||
$this->generateGrm(2, $strSearchKeywords . $intPage, 20);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace app\home\controller;
|
||||
|
||||
use app\home\BaseController;
|
||||
use app\model\NovelModel;
|
||||
use storage\StorageCore;
|
||||
use think\facade\View;
|
||||
use app\Request;
|
||||
|
||||
@@ -14,7 +13,6 @@ class User extends BaseController
|
||||
{
|
||||
public function index(Request $Request)
|
||||
{
|
||||
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
$NovelModel = NovelModel::getInstance();
|
||||
|
||||
Reference in New Issue
Block a user