diff --git a/src/index.js b/src/index.js index 819bfc7..aadb116 100644 --- a/src/index.js +++ b/src/index.js @@ -495,6 +495,11 @@ async function doUpload(chatId, feishu, uploader, info) { const result = await uploader.upload(tempFile, targetKey, bucket); await uploader.refreshCDN(bucket, targetKey); + // 获取实际存储桶名称(不是配置别名) + const fullConfig = loadFullConfig(); + const bucketConfig = fullConfig.buckets[bucket]; + const actualBucketName = bucketConfig ? bucketConfig.bucket : bucket; + await feishu.sendMessage(chatId, { msg_type: 'text', content: { @@ -502,7 +507,7 @@ async function doUpload(chatId, feishu, uploader, info) { `📦 文件:${targetKey}\n` + `🔗 链接:${result.url}\n` + `💾 原文件:${file_name}\n` + - `🪣 存储桶:${bucket}\n` + + `🪣 存储桶:${actualBucketName}\n` + `📁 配置:${path_label}` } });