From f03d272aad6635041030e5778af339085a769882 Mon Sep 17 00:00:00 2001 From: make Date: Mon, 12 Jan 2026 15:06:22 +0800 Subject: [PATCH] data --- code/app/home/view/videoGpt1/index/index.html | 1 + code/app/model/VideoCategoryModel.php | 77 +++++++++++++++---- .../crawler/maotai/page/VideoCategory.php | 7 +- 3 files changed, 67 insertions(+), 18 deletions(-) diff --git a/code/app/home/view/videoGpt1/index/index.html b/code/app/home/view/videoGpt1/index/index.html index 331f381..0388fa1 100644 --- a/code/app/home/view/videoGpt1/index/index.html +++ b/code/app/home/view/videoGpt1/index/index.html @@ -103,5 +103,6 @@ {/foreach} + {/block} diff --git a/code/app/model/VideoCategoryModel.php b/code/app/model/VideoCategoryModel.php index bfaf0d1..0f9f60c 100644 --- a/code/app/model/VideoCategoryModel.php +++ b/code/app/model/VideoCategoryModel.php @@ -34,11 +34,12 @@ class VideoCategoryModel extends MongoModel "v_category" => "电影", "v_category_en" => 'dian-ying', "children" => [ - // [ - // "v_category_en" => "shao-shi-dian-ying", - // "v_category" => "邵氏电影", - // "children" => [], - // ], + + [ + "v_category_en" => "shao-shi-dian-ying", + "v_category" => "邵氏电影", + "children" => [], + ], [ "v_category_en" => "dong-zuo-pian", "v_category" => "动作片", @@ -94,12 +95,17 @@ class VideoCategoryModel extends MongoModel // "v_category" => "预告片", // "children" => [], // ], + [ + "v_category_en" => "lun-li-pian", + "v_category" => "伦理片", + "children" => [], + ], + [ + "v_category_en" => "dong-man-dian-ying", + "v_category" => "动漫电影", + "children" => [], + ], - // [ - // "v_category_en" => "lun-li-pian", - // "v_category" => "倫理片", - // "children" => [], - // ], ], ], [ @@ -121,6 +127,11 @@ class VideoCategoryModel extends MongoModel "v_category" => "韩国剧", "children" => [] ], + [ + 'pinyin' => 'han-ju', + 'name' => '韩剧', + "children" => [] + ], [ "v_category_en" => "ou-mei-ju", "v_category" => "欧美剧", @@ -146,17 +157,18 @@ class VideoCategoryModel extends MongoModel "v_category" => "海外剧", "children" => [] ], + ], ], [ "v_category" => "综艺", "v_category_en" => 'zong-yi', "children" => [ - // [ - // "v_category_en" => "yan-chang-hui", - // "v_category" => "演唱会", - // "children" => [], - // ], + [ + "v_category_en" => "yan-chang-hui", + "v_category" => "演唱会", + "children" => [], + ], [ "v_category_en" => "da-lu-zong-yi", "v_category" => "大陆综艺", @@ -234,6 +246,41 @@ class VideoCategoryModel extends MongoModel "v_category" => "短剧大全", "children" => [], ], + [ + "v_category_en" => "zhong-sheng-min-guo", + "v_category" => "重生民国", + "children" => [], + ], + [ + "v_category_en" => "chuan-yue-xian-dai", + "v_category" => "穿越现代", + "children" => [], + ], + [ + 'v_category_en' => 'fan-zhuan-shuang-ju', + 'v_category_en' => '反转爽剧', + "children" => [], + ], + [ + 'v_category_en' => 'yan-qing-zong-cai', + 'v_category_en' => '言情总裁', + "children" => [], + ], + [ + 'v_category_en' => 'xian-dai-dou-shi', + 'v_category_en' => '现代都市', + "children" => [], + ], + [ + 'v_category_en' => 'gu-zhuang-xian-xia', + 'v_category_en' => '古装仙侠', + "children" => [], + ], + [ + 'v_category_en' => 'xuan-yi-shao-nao', + 'v_category_en' => '悬疑烧脑', + "children" => [], + ] ], ] diff --git a/code/app/task/crawler/maotai/page/VideoCategory.php b/code/app/task/crawler/maotai/page/VideoCategory.php index c41b157..bf694ad 100644 --- a/code/app/task/crawler/maotai/page/VideoCategory.php +++ b/code/app/task/crawler/maotai/page/VideoCategory.php @@ -6,6 +6,7 @@ namespace app\task\crawler\maotai\page; class VideoCategory { + static $arrCategory = [ 1 => [ @@ -16,13 +17,13 @@ class VideoCategory 2 => [ 'name' => '连续剧', - 'pinyin' => 'lian-xu-ju', + 'pinyin' => 'dian-shi-ju', ], 3 => [ - 'name' => '综艺片', - 'pinyin' => 'zong-yi-pian', + 'name' => '综艺', + 'pinyin' => 'zong-yi', ], 4 =>