Skip to content

Let's use AI to Earn!

style: 1

yikaJasonMicdb117c10e2bc
diff --git a/electron/main/tools/controller.ts b/electron/main/tools/controller.ts
index 0283afdf..c1447046 100644
--- a/electron/main/tools/controller.ts
+++ b/electron/main/tools/controller.ts
@@ -1,11 +1,12 @@
/*
* @Author: nevin
* @Date: 2025-01-20 22:02:54
- * @LastEditTime: 2025-03-31 11:21:22
+ * @LastEditTime: 2025-03-31 12:26:51
* @LastEditors: nevin
* @Description:
*/
import { FileUtils } from '../../util/file';
+import { FFmpegVideoUtil } from '../../util/ffmpeg/video';
import { Controller, Icp, Inject } from '../core/decorators';
import { ToolsService } from './service';
@@ -23,7 +24,7 @@ export class ToolsController {
path: string,
time?: string, // 添加可选参数 time
): Promise<string> {
- return '';
+ return await FFmpegVideoUtil.getVideoCover(path, time);
}
/**