From c5b319730b2ea9007750cde7e4b9b4d663f883e5 Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Sun, 5 May 2024 22:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=8A=E5=95=8A=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/md5/md5.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/md5/md5.js b/ica-rs/plugins/md5/md5.js index e8ef51f..462cb69 100644 --- a/ica-rs/plugins/md5/md5.js +++ b/ica-rs/plugins/md5/md5.js @@ -135,9 +135,10 @@ if (run_env.from_code) { global.finish_trigger = finish_trigger; // 读取 input.txt - // const input_path = path.join(__dirname, "input.txt"); + // 从当前脚本的相对路径读取 + const input_path = path.join(__dirname, "input.txt"); // 从 cli 参数里读取 - const input_path = run_env.cli_args[2]; + // const input_path = run_env.cli_args[2]; logger.info("input_path", input_path); const input_data = fs.readFileSync(input_path, "utf-8"); global.name_input = input_data;