fix: 移除无用代码
This commit is contained in:
parent
fa194a5db2
commit
24d70f4e32
|
|
@ -2328,6 +2328,7 @@ dependencies = [
|
||||||
"thiserror 1.0.69",
|
"thiserror 1.0.69",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-test",
|
"tokio-test",
|
||||||
|
"toml 0.8.23",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-appender",
|
"tracing-appender",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,6 @@ impl MaterialRepository {
|
||||||
|
|
||||||
/// 获取素材的所有片段
|
/// 获取素材的所有片段
|
||||||
pub fn get_segments(&self, material_id: &str) -> Result<Vec<MaterialSegment>> {
|
pub fn get_segments(&self, material_id: &str) -> Result<Vec<MaterialSegment>> {
|
||||||
println!("🔍 查询素材片段,material_id: {}", material_id);
|
|
||||||
|
|
||||||
let conn = self.database.get_connection();
|
let conn = self.database.get_connection();
|
||||||
let conn = conn.lock().unwrap();
|
let conn = conn.lock().unwrap();
|
||||||
|
|
@ -254,11 +253,9 @@ impl MaterialRepository {
|
||||||
let mut segments = Vec::new();
|
let mut segments = Vec::new();
|
||||||
for (index, segment) in segment_iter.enumerate() {
|
for (index, segment) in segment_iter.enumerate() {
|
||||||
let segment = segment?;
|
let segment = segment?;
|
||||||
println!("🎬 找到片段 {}: {} (时长: {:.2}s)", index + 1, segment.id, segment.duration);
|
|
||||||
segments.push(segment);
|
segments.push(segment);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("📊 素材 {} 共找到 {} 个片段", material_id, segments.len());
|
|
||||||
Ok(segments)
|
Ok(segments)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import AiClassificationSettings from './pages/AiClassificationSettings';
|
||||||
import TemplateManagement from './pages/TemplateManagement';
|
import TemplateManagement from './pages/TemplateManagement';
|
||||||
import { MaterialModelBinding } from './pages/MaterialModelBinding';
|
import { MaterialModelBinding } from './pages/MaterialModelBinding';
|
||||||
import Tools from './pages/Tools';
|
import Tools from './pages/Tools';
|
||||||
|
import OutfitMatch from './pages/OutfitMatch';
|
||||||
import Navigation from './components/Navigation';
|
import Navigation from './components/Navigation';
|
||||||
import { NotificationSystem, useNotifications } from './components/NotificationSystem';
|
import { NotificationSystem, useNotifications } from './components/NotificationSystem';
|
||||||
import { useProjectStore } from './store/projectStore';
|
import { useProjectStore } from './store/projectStore';
|
||||||
|
|
@ -79,6 +80,7 @@ function App() {
|
||||||
<Route path="/ai-classification-settings" element={<AiClassificationSettings />} />
|
<Route path="/ai-classification-settings" element={<AiClassificationSettings />} />
|
||||||
<Route path="/templates" element={<TemplateManagement />} />
|
<Route path="/templates" element={<TemplateManagement />} />
|
||||||
<Route path="/material-model-binding" element={<MaterialModelBinding />} />
|
<Route path="/material-model-binding" element={<MaterialModelBinding />} />
|
||||||
|
<Route path="/outfit-match" element={<OutfitMatch />} />
|
||||||
<Route path="/tools" element={<Tools />} />
|
<Route path="/tools" element={<Tools />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue