debug
This commit is contained in:
@@ -33,20 +33,23 @@ class Novel extends TagLib
|
||||
{
|
||||
$page = $tag['page'] ?? '0';
|
||||
$limit = $tag['limit'] ?? '10';
|
||||
$button_num = $tag['button_num'] ?? '10';
|
||||
$n_category = $tag['n_category'] ?? "all";
|
||||
$sort_type = $tag['sort_type'] ?? "";
|
||||
$n_status = $tag['n_status'] ?? "all";
|
||||
$n_sex = $tag['n_sex'] ?? "all";
|
||||
$n_status = $tag['n_status'] ?? "";
|
||||
$n_sex = $tag['n_sex'] ?? "";
|
||||
$key = $tag['key'] ?? "";
|
||||
$diff_key = $tag['diff_key'] ?? "";
|
||||
$cache_life = $tag['cache_life'] ?? '0';
|
||||
$d_key = $tag['d_key'] ?? 'd_key';
|
||||
$d_val = $tag['d_val'] ?? 'd_val';
|
||||
$p_val = $tag['p_val'] ?? 'p_val';
|
||||
$n_num = $tag['n_num'] ?? 'n_num';
|
||||
$func = $tag['func'];
|
||||
|
||||
$page = $this->customBuildVar($page);
|
||||
$limit = $this->customBuildVar($limit);
|
||||
$button_num = $this->customBuildVar($button_num);
|
||||
$n_category = $this->customBuildVar($n_category);
|
||||
$sort_type = $this->customBuildVar($sort_type);
|
||||
$n_status = $this->customBuildVar($n_status);
|
||||
@@ -61,6 +64,7 @@ class Novel extends TagLib
|
||||
\$novelData = app(\\app\\services\\NovelService::class)->getNovelPager([
|
||||
'page' => {$page},
|
||||
'limit' => {$limit},
|
||||
'button_num' => {$button_num},
|
||||
'n_category' => {$n_category},
|
||||
'sort_type' => {$sort_type},
|
||||
'n_status' => {$n_status},
|
||||
@@ -73,6 +77,7 @@ class Novel extends TagLib
|
||||
|
||||
if (isset(\$novelData['data']) && is_array(\$novelData['data'])):
|
||||
\${$p_val} = \$novelData['p_data'] ?? [];
|
||||
\${$n_num} = \$novelData['pages'] ?? [];
|
||||
?>
|
||||
EOT;
|
||||
$strParse .= <<<EOT
|
||||
|
||||
@@ -85,9 +85,12 @@ EOD;
|
||||
$intNId = isset($tag['n_id']) ? $tag['n_id'] : '';
|
||||
$strNPy = isset($tag['n_py']) ? $tag['n_py'] : '';
|
||||
|
||||
$intNId = $this->customBuildVar($intNId);
|
||||
$strNPy = $this->customBuildVar($strNPy);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelInfoUrl("{$intNId}","{$strNPy}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelInfoUrl({$intNId},{$strNPy});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -106,9 +109,13 @@ EOD;
|
||||
$strNPy = isset($tag['n_py']) ? $tag['n_py'] : '';
|
||||
$intNForgeId = isset($tag['n_fid']) ? $tag['n_fid'] : '';
|
||||
|
||||
$intNId = $this->customBuildVar($intNId);
|
||||
$strNPy = $this->customBuildVar($strNPy);
|
||||
$intNForgeId = $this->customBuildVar($intNForgeId);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getForgeNovelInfoUrl("{$intNId}","{$strNPy}","{$intNForgeId}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getForgeNovelInfoUrl({$intNId},{$strNPy},{$intNForgeId});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -128,9 +135,14 @@ EOD;
|
||||
$intChapterSort = isset($tag['c_sort']) ? $tag['c_sort'] : '';
|
||||
$intChapterPage = isset($tag['c_page']) ? $tag['c_page'] : '';
|
||||
|
||||
$intNId = $this->customBuildVar($intNId);
|
||||
$strNPy = $this->customBuildVar($strNPy);
|
||||
$intChapterSort = $this->customBuildVar($intChapterSort);
|
||||
$intChapterPage = $this->customBuildVar($intChapterPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelChapterUrl("{$intNId}","{$strNPy}","{$intChapterSort}","{$intChapterPage}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelChapterUrl({$intNId},{$strNPy},{$intChapterSort},{$intChapterPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -148,9 +160,12 @@ EOD;
|
||||
$intNId = isset($tag['n_id']) ? $tag['n_id'] : '';
|
||||
$strNPy = isset($tag['n_py']) ? $tag['n_py'] : '';
|
||||
|
||||
$intNId = $this->customBuildVar($intNId);
|
||||
$strNPy = $this->customBuildVar($strNPy);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelLasterChapterUrl("{$intNId}","{$strNPy}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelLasterChapterUrl({$intNId},{$strNPy});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -170,9 +185,14 @@ EOD;
|
||||
$strOrder = isset($tag['order']) ? $tag['order'] : '';
|
||||
$intPage = isset($tag['page']) ? $tag['page'] : '';
|
||||
|
||||
$intNId = $this->customBuildVar($intNId);
|
||||
$strNPy = $this->customBuildVar($strNPy);
|
||||
$strOrder = $this->customBuildVar($strOrder);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelCatalogUrl("{$intNId}","{$strNPy}","{$strOrder}","{$intPage}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelCatalogUrl({$intNId},{$strNPy},{$strOrder},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -192,10 +212,16 @@ EOD;
|
||||
$strStatus = isset($tag['status']) ? $tag['status'] : '';
|
||||
$strOrder = isset($tag['order']) ? $tag['order'] : '';
|
||||
$intPage = isset($tag['page']) ? $tag['page'] : '';
|
||||
|
||||
$strGender = $this->customBuildVar($strGender);
|
||||
$strCategory = $this->customBuildVar($strCategory);
|
||||
$strStatus = $this->customBuildVar($strStatus);
|
||||
$strOrder = $this->customBuildVar($strOrder);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelCategoryUrl("{$strGender}","{$strCategory}","{$strStatus}","{$strOrder}","{$intPage}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelCategoryUrl({$strGender},{$strCategory},{$strStatus},{$strOrder},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
@@ -213,9 +239,12 @@ EOD;
|
||||
$strKey = isset($tag['key']) ? $tag['key'] : '';
|
||||
$intPage = isset($tag['p']) ? $tag['p'] : '';
|
||||
|
||||
$strKey = $this->customBuildVar($strKey);
|
||||
$intPage = $this->customBuildVar($intPage);
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelSearchUrl("{$strKey}","{$intPage}");
|
||||
\$strUrl = app(\\app\\services\\NovelService::class)->getNovelSearchUrl({$strKey},{$intPage});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
|
||||
Reference in New Issue
Block a user