From 8c33c824ab88fac1bafc7678e94722e3f0ff5d26 Mon Sep 17 00:00:00 2001 From: wwwwwwwww <526125649@qq.com> Date: Fri, 26 Jun 2026 10:41:23 +0800 Subject: [PATCH] 1 --- video-gen-api/app/main.py | 5 + video-gen-app/src/pages/CreativePlazaPage.tsx | 160 ++------------- video-gen-app/src/pages/PopularPage.tsx | 188 +++--------------- 3 files changed, 47 insertions(+), 306 deletions(-) diff --git a/video-gen-api/app/main.py b/video-gen-api/app/main.py index bb00da4d..6dc3893c 100644 --- a/video-gen-api/app/main.py +++ b/video-gen-api/app/main.py @@ -357,7 +357,10 @@ async def _seed_data(): menu_count = await db.execute(select(func.count(MenuConfig.id))) menu_count_result = menu_count.scalar_one() + logging.info(f"Menu config count: {menu_count_result}") + if menu_count_result == 0: + logging.info("Inserting default menu configs...") frontend_groups = [ ("AI项目行业生成", "HomeOutlined", 0), ("AI对话生成", "HomeOutlined", 1), @@ -468,6 +471,8 @@ async def _seed_data(): parent_id=admin_group_ids.get(parent_group), ) ) + + logging.info("Default menu configs inserted successfully") # Seed recharge packages from app.models.recharge_package import RechargePackage diff --git a/video-gen-app/src/pages/CreativePlazaPage.tsx b/video-gen-app/src/pages/CreativePlazaPage.tsx index bd4884e8..4d58436c 100644 --- a/video-gen-app/src/pages/CreativePlazaPage.tsx +++ b/video-gen-app/src/pages/CreativePlazaPage.tsx @@ -12,71 +12,9 @@ import { const CreativePlazaPage: React.FC = () => { const handleUnlock = () => { - message.info('请联系客服开通VIP会员,客服热线:400-888-8888'); + message.info('请联系客服开通'); }; - const caseStudies = [ - { - id: 1, - title: '品牌宣传视频', - category: '商业广告', - description: '为知名品牌打造的创意宣传视频,展现品牌理念与产品特色', - tags: ['AI生成', '品牌推广', '创意设计'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=professional%20brand%20promotional%20video%20advertisement%20modern&image_size=landscape_16_9', - duration: '0:45', - quality: '4K', - }, - { - id: 2, - title: '产品展示动画', - category: '电商展示', - description: '3D产品展示动画,让产品细节完美呈现', - tags: ['3D渲染', '产品展示', '电商'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=3D%20product%20showcase%20animation%20ecommerce&image_size=landscape_16_9', - duration: '0:30', - quality: '4K', - }, - { - id: 3, - title: '教育培训课程', - category: '知识分享', - description: '生动有趣的教育内容,让学习更加轻松愉快', - tags: ['教育', '知识', '在线课程'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=educational%20video%20learning%20classroom%20modern&image_size=landscape_16_9', - duration: '15:20', - quality: '1080P', - }, - { - id: 4, - title: '短视频创意', - category: '社交媒体', - description: '适合各大社交平台的创意短视频内容', - tags: ['短视频', '社交', '创意'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=creative%20short%20video%20social%20media%20vibrant&image_size=landscape_16_9', - duration: '0:15', - quality: '1080P', - }, - { - id: 5, - title: '企业宣传片', - category: '企业形象', - description: '全方位展示企业实力与文化的专业宣传片', - tags: ['企业', '宣传片', '品牌'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=corporate%20video%20company%20profile%20professional&image_size=landscape_16_9', - duration: '2:30', - quality: '4K', - }, - { - id: 6, - title: '动画短片', - category: '创意动画', - description: '精美的AI生成动画短片,展现无限创意', - tags: ['动画', 'AI艺术', '创意'], - thumbnail: 'https://neeko-copilot.bytedance.net/api/text_to_image?prompt=creative%20animated%20short%20film%20colorful%20artistic&image_size=landscape_16_9', - duration: '1:30', - quality: '4K', - }, - ]; const features = [ { @@ -176,89 +114,19 @@ const CreativePlazaPage: React.FC = () => { -