From 7a183d3324ea3f5bccbc2a3a6d30c1dd8a9b6da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=AD=E5=9B=A2?= Date: Sun, 15 Mar 2026 00:41:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20/profile=20rename?= =?UTF-8?q?=20=E5=91=BD=E4=BB=A4=E4=B8=AD=20args=20=E6=9C=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 handleProfileCommandV2 中添加 args 变量定义 - 现在 /profile rename 可以正常使用 --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index d50f586..8619f9c 100644 --- a/src/index.js +++ b/src/index.js @@ -812,6 +812,7 @@ async function handleProfileCommandV2(message, content, feishu) { const spaceIndex = remainingText.indexOf(' '); const subCommand = spaceIndex === -1 ? remainingText : remainingText.substring(0, spaceIndex); const paramsText = spaceIndex === -1 ? '' : remainingText.substring(spaceIndex + 1).trim(); + const args = paramsText ? paramsText.split(/\s+/) : []; const configPath = path.join(process.cwd(), 'config', 'qiniu-config.json');