From edc787eb3e93d9f74eaaa185eb044d76244229f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 26 Aug 2024 00:01:44 +0800 Subject: [PATCH] style: lint --- src/core/apis/file.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 857cf139..0cdf2b6b 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -159,7 +159,6 @@ export class NTQQFileApi { } let thumb = path.replace(`${pathLib.sep}Ori${pathLib.sep}`, `${pathLib.sep}Thumb${pathLib.sep}`); thumb = pathLib.dirname(thumb); - // log("thumb 目录", thumb) let videoInfo = { width: 1920, height: 1080, time: 15, @@ -169,7 +168,6 @@ export class NTQQFileApi { }; try { videoInfo = await getVideoInfo(path, logger); - //logDebug('视频信息', videoInfo); } catch (e) { logger.logError('获取视频信息失败', e); } @@ -253,11 +251,11 @@ export class NTQQFileApi { path: silkPath, duration, } = await encodeSilk(pttPath, this.core.NapCatTempPath, this.core.context.logger); - // log("生成语音", silkPath, duration); + // 生成语音 Path: silkPath Time: duration if (!silkPath) { throw '语音转换失败, 请检查语音文件是否正常'; } - const { md5, fileName, path, fileSize } = await this.core.apis.FileApi.uploadFile(silkPath!, ElementType.PTT); + const { md5, fileName, path, fileSize } = await this.core.apis.FileApi.uploadFile(silkPath, ElementType.PTT); if (fileSize === 0) { throw '文件异常,大小为0'; }