This commit is contained in:
make
2025-04-22 14:31:25 +08:00
parent 683424b63e
commit 3280e769ba
37 changed files with 1173 additions and 350 deletions

View File

@@ -167,14 +167,14 @@ EOT;
public function tagInfo($tag)
{
$n_id = $tag['n_id'] ?? '0';
$c_sort_num = $tag['c_sort_num'] ?? 0;
$c_page = $tag['c_page'] ?? 0;
$c_sort_num = !isset($tag['c_sort_num']) ? $tag['c_sort_num'] : 0;
$c_page = !isset($tag['c_page']) ? $tag['c_page'] : 0;
$c_key = $tag['c_key'] ?? 'arrChapter';
$n_id = $this->customBuildVar($n_id);
$c_sort_num = $this->customBuildVar($c_sort_num);
$c_page = $this->customBuildVar($c_page);
$strParse = <<<EOT
<?php
\$arrChapter = app(\\app\\services\\ChapterService::class)->getChapterInfo(

View File

@@ -10,7 +10,7 @@ class Novel extends TagLib
'list' => ['attr' => 'count,n_category,sort_type,n_status,n_sex,diff_key,cache_life,d_key,d_val', 'close' => 1],
'pager' => ['attr' => 'page,limit,n_category,sort_type,n_status,n_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 1],
'pagerexp' => ['attr' => 'page,limit,n_category,sort_type,n_status,n_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0],
'info' => ['attr' => 'n_id,n_key', 'close' => 0],
'info' => ['attr' => 'n_id,n_forge_id,n_key', 'close' => 0],
'sort' => ['attr' => 'd_key,d_val'],
'status' => ['attr' => 'd_key,d_val'],
'sex' => ['attr' => 'd_key,d_val'],
@@ -245,12 +245,13 @@ EOT;
public function tagInfo($tag)
{
$n_id = $tag['n_id'] ?? '0';
$n_forge_id = $tag['n_forge_id'] ?? 0;
$n_forge_id = isset($tag['n_forge_id']) ? $tag['n_forge_id'] : 0;
$n_key = $tag['n_key'] ?? 'arrNovel';
$n_id = $this->customBuildVar($n_id);
$n_forge_id = $this->customBuildVar($n_forge_id);
$strParse = <<<EOT
<?php
\$novelData = app(\\app\\services\\NovelService::class)->getNovelByNId(