This commit is contained in:
make
2025-05-02 18:30:50 +08:00
parent 85f2ef5cb2
commit 65ac6d7652
19 changed files with 489 additions and 302 deletions

View File

@@ -9,7 +9,7 @@ class Video extends TagLib
protected $tags = [
'list' => ['attr' => 'count,v_category,sort_type,v_status,v_sex,diff_key,cache_life,d_key,d_val', 'close' => 1],
'pager' => ['attr' => 'page,limit,v_category,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 1],
'pagerexp' => ['attr' => 'page,limit,v_category,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0],
'pagerexp' => ['attr' => 'page,limit,v_class,v_category,sort_type,v_status,v_sex,key,diff_key,cache_life,d_key,d_val,p_val,func,export_name', 'close' => 0],
'info' => ['attr' => 'v_id,v_forge_id,v_key', 'close' => 0],
'sort' => ['attr' => 'd_key,d_val'],
'ranksort' => ['attr' => 'd_key,d_val'],
@@ -109,7 +109,12 @@ EOT;
$page = $tag['page'] ?? '0';
$limit = $tag['limit'] ?? '10';
$buttov_num = $tag['buttov_num'] ?? '10';
$v_class = $tag['v_class'] ?? '10';
$v_category = $tag['v_category'] ?? "all";
$v_lang = $tag['v_lang'] ?? "all";
$v_area = $tag['v_area'] ?? "all";
$v_year = $tag['v_year'] ?? "all";
$sort_type = $tag['sort_type'] ?? "";
$v_status = $tag['v_status'] ?? "";
$key = $tag['key'] ?? "";
@@ -126,7 +131,11 @@ EOT;
$page = $this->customBuildVar($page);
$limit = $this->customBuildVar($limit);
$buttov_num = $this->customBuildVar($buttov_num);
$v_class = $this->customBuildVar($v_class);
$v_category = $this->customBuildVar($v_category);
$v_lang = $this->customBuildVar($v_lang);
$v_area = $this->customBuildVar($v_area);
$v_year = $this->customBuildVar($v_year);
$sort_type = $this->customBuildVar($sort_type);
$v_status = $this->customBuildVar($v_status);
@@ -143,7 +152,11 @@ EOT;
'page' => {$page},
'limit' => {$limit},
'buttov_num' => {$buttov_num},
'v_class' => {$v_class},
'v_category' => {$v_category},
'v_lang' => {$v_lang},
'v_area' => {$v_area},
'v_year' => {$v_year},
'sort_type' => {$sort_type},
'v_status' => {$v_status},
'key' => {$key},