mixvideo-v2/apps/desktop/src-tauri
imeepos 730ac22b84 fix: 修复get_matching_result_detail接口数据类型错误
修复'Invalid column type Real at index: 9, name: match_score'错误

问题根本原因:
1. 数据库schema中match_score字段定义为REAL类型
2. 数据插入时错误地将REAL/INTEGER字段转换为字符串
3. 数据读取时错误地尝试将REAL/INTEGER字段作为String类型获取

修复内容:
1. 修正matching_segment_results表相关字段的数据插入逻辑
   - match_score: 直接使用f64类型而非转换为字符串
   - segment_duration, start_time, end_time: 直接使用u64类型

2. 修正matching_failed_segment_results表相关字段的数据插入逻辑
   - segment_duration, start_time, end_time: 直接使用u64类型

3. 修正row_to_segment_result和row_to_failed_segment_result函数
   - 直接使用原始数据类型而非字符串解析

这确保了数据库操作的类型一致性,解决了get_matching_result_detail接口的错误。
2025-07-16 14:11:14 +08:00
..
capabilities fix: 修复项目详情页打开文件夹功能 2025-07-13 22:00:30 +08:00
icons Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
src fix: 修复get_matching_result_detail接口数据类型错误 2025-07-16 14:11:14 +08:00
.gitignore Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
Cargo.toml fix: 修复缩略图显示权限问题,使用base64数据URL 2025-07-15 22:38:22 +08:00
build.rs Initial commit: MixVideo Desktop v0.1.0 2025-07-13 17:57:52 +08:00
tauri.conf.json fix: 修复缩略图显示权限问题,使用base64数据URL 2025-07-15 22:38:22 +08:00