From 41b999115efec8f3ea3a6d340a256213a7c5e0bc Mon Sep 17 00:00:00 2001 From: yu <191972707@qq.com> Date: Tue, 3 Nov 2026 14:06:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B1=8F=E5=B9=95=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=B7=AF=E5=BE=84=E5=AD=97=E6=AE=B5=E6=AD=A3?= =?UTF-8?q?=E5=90=8D(=E7=9B=AE=E6=A0=87=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84->=E6=88=AA=E5=9B=BE=E4=BF=9D=E5=AD=98=E8=B7=AF?= =?UTF-8?q?=E5=BE=84),=20=E5=A4=87=E7=94=A8=E8=BE=93=E5=87=BA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95/=E6=96=87=E4=BB=B6=E5=90=8D=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E8=BF=9B=E9=AB=98=E7=BA=A7=E5=8F=82=E6=95=B0,=20=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E5=86=99=E6=B8=85=E4=BF=9D=E5=AD=98=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/catalog.json | 12 ++++++------ src/main/capabilities/vision.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/catalog.json b/resources/catalog.json index 84c5c6e..6e2bb85 100644 --- a/resources/catalog.json +++ b/resources/catalog.json @@ -67132,14 +67132,14 @@ }, { "key": "image_path", - "label": "目标文件路径", + "label": "截图保存路径", "widget": "file", "type": "object", "displayType": "selectFile", "required": true, "defaultValue": "", "placeholder": "如 D:\\files\\demo.png", - "description": "选择要截图的图片文件路径", + "description": "截图保存的完整文件路径(含文件名),点右侧按钮可直接选保存位置;留空时保存到「截图输出目录+截图文件名称」,再留空则保存到流程资源目录", "advanced": false, "valueTypes": [ "rpa_str_file", @@ -67194,8 +67194,8 @@ "required": false, "defaultValue": "", "placeholder": "如 D:\\output", - "description": "输出目录为空,将会保存文件到流程资源目录", - "advanced": false, + "description": "备用输出目录;「截图保存路径」为空时,截图保存到该目录下的「截图文件名称」", + "advanced": true, "valueTypes": [ "rpa_str_folder", "rpa_str" @@ -67210,8 +67210,8 @@ "required": false, "defaultValue": "", "placeholder": "输入内容或 ${变量}", - "description": "文件名称为空,将会自动生成文件名", - "advanced": false, + "description": "备用文件名;仅当「截图保存路径」为空时使用,留空则自动生成文件名", + "advanced": true, "valueTypes": [ "rpa_str" ] diff --git a/src/main/capabilities/vision.ts b/src/main/capabilities/vision.ts index 77f4849..dd53bf9 100644 --- a/src/main/capabilities/vision.ts +++ b/src/main/capabilities/vision.ts @@ -190,8 +190,8 @@ register("Image_Screenshot", async (ctx, node, args) => { if (source === "2") { // 指定图片文件来源:image_path 为输入图片;输出走 输出目录+文件名,两者均未配置时直接返回源文件 if (!imageArg.trim()) { - throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,目标文件路径需填写源图片路径", { - recommendation: "在目标文件路径选择一张已存在的图片,或将图像来源改回「当前屏幕」" + throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,截图保存路径需填写源图片路径", { + recommendation: "在截图保存路径选择一张已存在的图片,或将图像来源改回「当前屏幕」" }); } const sourceFile = path.resolve(imageArg);