修正子程序调用:用RunSpAsync传Dictionary参数,窗口不关闭

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-20 09:02:16 +08:00
parent c6bf0cdf56
commit f27a8b912a

View File

@@ -1043,9 +1043,9 @@ public class ScannerForm : Form
lblStatus.Text = string.Format("完成!已保存: {0}", Path.GetFileName(outputPath));
// 调用子程序 "over",传参 files 为输出文件路径
_context.SetVarValue("files", outputPath);
_context.SetVarValue("over", true);
this.Close();
var param = new Dictionary<string, object>();
param.Add("files", outputPath);
_context.RunSpAsync("over", param);
}
catch (Exception ex)
{