From 502fef024f0e2a0f0084b28515b3611e43d9254a Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Wed, 3 Dec 2025 18:07:42 +0800 Subject: [PATCH] fix --- src/command/sync/sync.ts | 6 +++--- src/module/download/upload.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/command/sync/sync.ts b/src/command/sync/sync.ts index ca4fa79..e2a2162 100644 --- a/src/command/sync/sync.ts +++ b/src/command/sync/sync.ts @@ -56,12 +56,12 @@ const syncUpload = new Command('upload') }); if (res.code === 200) { if (res.data?.isNew) { - newInfos.push(['上传成功', item.key, chalk.green(item.url), chalk.green('文件上传'), chalk.yellow(`hash: ${res.data.hash}`)]); + newInfos.push(['上传成功', item.key, chalk.green(item.url), chalk.green('文件上传')]); } else if (res.data?.isNewMeta) { - newInfos.push(['上传成功', item.key, chalk.green(item.url), chalk.green('元数据更新'), chalk.yellow(`hash: ${res.data.hash}`)]); + newInfos.push(['上传成功', item.key, chalk.green(item.url), chalk.green('元数据更新')]); } else { // 文件未更新 - logger.debug('上传成功', item.key, chalk.green(item.url), chalk.blue('文件未更新'), chalk.yellow(`hash: ${res.data.hash}`)); + logger.debug('上传成功', item.key, chalk.green(item.url), chalk.blue('文件未更新')); } } logger.debug(res); diff --git a/src/module/download/upload.ts b/src/module/download/upload.ts index 8b028b5..b96f5b4 100644 --- a/src/module/download/upload.ts +++ b/src/module/download/upload.ts @@ -87,7 +87,6 @@ export const upload = (opts: UploadOptions): Promise<{ code?: number; message?: opts.url.searchParams.append('size', fileSize.toString()); } } - console.log('上传文件到', opts.url.toString()); const headers = form.getHeaders(); return new Promise((resolve) => { form.submit(getFormParams(opts, headers), (err, res) => {