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);