From ecd7012eee498a67b6b75978320073dd19263d68 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, 25 Aug 2025 15:24:30 +0800 Subject: [PATCH] Remove redundant upload success log Eliminated a logger statement that logged successful uploads in the NTQQWebApi class. This reduces unnecessary log output during chunked uploads. --- src/core/apis/webapi.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/apis/webapi.ts b/src/core/apis/webapi.ts index 6d70c8d5..a905228e 100644 --- a/src/core/apis/webapi.ts +++ b/src/core/apis/webapi.ts @@ -402,14 +402,13 @@ export class NTQQWebApi { const post = await response.json() as { ret: number, msg: string }; if (post.ret !== 0) { throw new Error(`分片 ${seq} 上传失败: ${post.msg}`); } - this.context.logger.log(`上传 ${api} 成功`); offset += chunk.length; seq++; } return { success: true, message: '上传完成' }; } - + async uploadImageToQunAlbum(gc: string, sAlbumID: string, sAlbumName: string, path: string) { const skey = await this.core.apis.UserApi.getSKey() || ''; const pskey = (await this.core.apis.UserApi.getPSkey(['qzone.qq.com'])).domainPskeyMap.get('qzone.qq.com') || '';