From cd12c7fd593d23753a62757660aa081df0d1b7b8 Mon Sep 17 00:00:00 2001 From: lichaojun Date: Tue, 1 Oct 2024 23:46:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- src/ppt_to_img.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/index.js b/config/index.js index 8f53729..42cc3a4 100644 --- a/config/index.js +++ b/config/index.js @@ -13,7 +13,7 @@ const config = { */ inputDir: '', // 要转换的文件个数, 0表示全部转换 - rangeNum: 15, + rangeNum: 10, }, // 裁剪商品封面图 cover: { diff --git a/src/ppt_to_img.js b/src/ppt_to_img.js index d779bc8..2a80724 100644 --- a/src/ppt_to_img.js +++ b/src/ppt_to_img.js @@ -51,10 +51,8 @@ fs.readdirSync(inputDir).forEach((file) => { if (ppt.pptFormat.has(ext)) { execNum++; if (base.rangeNum && execNum > base.rangeNum) { - console.log(base.rangeNum, execNum, '跳过'); return; } - console.log(base.rangeNum, execNum, '执行'); const inputPath = path.join(inputDir, file); convertPptToPdf(inputPath);