This commit is contained in:
make
2025-05-01 23:36:18 +08:00
parent 83adda543a
commit a905b5f73f
103 changed files with 6706 additions and 1 deletions

View File

@@ -26,6 +26,196 @@ class VideoCategoryModel extends MongoModel
return self::$VideoCategoryModel;
}
/**
* 自定义 总分类
*/
static $arrCategoryTypeONE = [
[
"v_category" => "电影",
"v_category_en" => "dianying",
"children" => [
[
"v_category_en" => "dong-zuo-pian",
"v_category" => "动作片",
"children" => [],
],
[
"v_category_en" => "xi-ju-pian",
"v_category" => "喜剧片",
"children" => [],
],
[
"v_category_en" => "ai-qing-pian",
"v_category" => "爱情片",
"children" => [],
],
[
"v_category_en" => "ke-huan-pian",
"v_category" => "科幻片",
"children" => [],
],
[
"v_category_en" => "kong-bu-pian",
"v_category" => "恐怖片",
"children" => [],
],
[
"v_category_en" => "ju-qing-pian",
"v_category" => "剧情片",
"children" => [],
],
[
"v_category_en" => "zhan-zheng-pian",
"v_category" => "战争片",
"children" => [],
],
[
"v_category_en" => "ji-lu-pian",
"v_category" => "记录片",
"children" => [],
],
[
"v_category_en" => "dong-hua-pian",
"v_category" => "动画片",
"children" => [],
],
[
"v_category_en" => "lun-li-pian",
"v_category" => "倫理片",
"children" => [],
],
],
],
[
"v_category" => "电视剧",
"v_category_en" => "dianshiju",
"children" => [
[
"v_category_en" => "guo-chan-ju",
"v_category" => "国产剧",
"children" => []
],
[
"v_category_en" => "tai-wan-ju",
"v_category" => "台湾剧",
"children" => []
],
[
"v_category_en" => "han-guo-ju",
"v_category" => "韩国剧",
"children" => []
],
[
"v_category_en" => "ou-mei-ju",
"v_category" => "欧美剧",
"children" => []
],
[
"v_category_en" => "xiang-gang-ju",
"v_category" => "香港剧",
"children" => []
],
[
"v_category_en" => "tai-guo-ju",
"v_category" => "泰国剧",
"children" => []
],
[
"v_category_en" => "ri-ben-ju",
"v_category" => "日本剧",
"children" => []
],
[
"v_category_en" => "hai-wai-ju",
"v_category" => "海外剧",
"children" => []
],
],
],
[
"v_category" => "综艺",
"v_category_en" => "zonyi",
"children" => [
[
"v_category_en" => "da-lu-zong-yi",
"v_category" => "大陆综艺",
"children" => [],
],
[
"v_category_en" => "gang-tai-zong-yi",
"v_category" => "港台综艺",
"children" => [],
],
[
"v_category_en" => "ri-han-zong-yi",
"v_category" => "日韩综艺",
"children" => [],
],
[
"v_category_en" => "ou-mei-zong-yi",
"v_category" => "欧美综艺",
"children" => [],
],
],
],
[
"v_category" => "动漫",
"v_category_en" => "donman",
"children" => [
[
"v_category_en" => "guo-chan-dong-man",
"v_category" => "国产动漫",
"children" => [],
],
[
"v_category_en" => "ri-han-dong-man",
"v_category" => "日韩动漫",
"children" => [],
],
[
"v_category_en" => "ou-mei-dong-man",
"v_category" => "欧美动漫",
"children" => [],
],
[
"v_category_en" => "gang-tai-dong-man",
"v_category" => "港台动漫",
"children" => [],
],
[
"v_category_en" => "hai-wai-dong-man",
"v_category" => "海外动漫",
"children" => [],
],
],
],
[
"v_category" => "短剧",
"v_category_en" => "duanju",
"children" => [
[
"v_category_en" => "duan-ju-da-quan",
"v_category" => "短剧大全",
"children" => [],
],
],
]
];
/**
* get custom category
*
* @param string $strType
* @return array
*/
static public function getCustomCategory($strType = "ONE"): array
{
$strType = "arrCategoryType" . $strType;
return self::${$strType};
}
static $arrCategory = [
"da-lu-zong-yi" => "大陆综艺",
"ai-qing-pian" => "爱情片",