feat: 使用banana模型生成分镜图片,修复数据库列类型问题

- 修改RealAIService.submitTextToImageTask使用nano-banana/nano-banana-hd模型
- 支持根据hdMode参数选择模型(标准/高清)
- 修复数据库列类型:将result_url等字段改为TEXT类型以支持Base64图片
- 添加数据库修复SQL脚本(fix_database_columns.sql, update_database_schema.sql)
- 改进StoryboardVideoService的错误处理和空值检查
- 添加GlobalExceptionHandler全局异常处理
- 优化图片URL提取逻辑,支持url和b64_json两种格式
- 改进响应格式验证,确保data字段不为空
This commit is contained in:
AIGC Developer
2025-11-05 18:18:53 +08:00
parent 0b0ad442a0
commit b5820d9be2
63 changed files with 2207 additions and 341 deletions

View File

@@ -89,7 +89,8 @@ const routes = [
},
{
path: '/',
redirect: '/profile' // 重定向到个人主页
name: 'Root',
redirect: '/welcome' // 默认重定向到欢迎页面
},
{
path: '/welcome',
@@ -230,6 +231,19 @@ router.beforeEach(async (to, from, next) => {
await userStore.init()
}
// 处理根路径:如果已登录,重定向到个人主页;否则重定向到欢迎页面
if (to.path === '/' || to.path === '/welcome') {
if (userStore.isAuthenticated && to.path === '/') {
next('/profile')
return
}
// 未登录用户访问欢迎页面,允许访问
if (!userStore.isAuthenticated && to.path === '/welcome') {
next()
return
}
}
// 检查是否需要认证
if (to.meta.requiresAuth) {
if (!userStore.isAuthenticated) {