Commit b6914212 by zhuzhequan

Merge remote-tracking branch 'origin/master'

parents 35b79680 56dcbfaa
...@@ -51,8 +51,6 @@ export const downloadImage = (list) => { ...@@ -51,8 +51,6 @@ export const downloadImage = (list) => {
// console.log("Formatted Folder Name:", folderName); // 检查替换结果 // console.log("Formatted Folder Name:", folderName); // 检查替换结果
let dirPath = path.join(process.cwd(), `./print/Input/`); let dirPath = path.join(process.cwd(), `./print/Input/`);
console.log(64, dirPath);
if (!fs.existsSync(dirPath)) { if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath); fs.mkdirSync(dirPath);
} }
......
...@@ -820,6 +820,8 @@ export default { ...@@ -820,6 +820,8 @@ export default {
this.checkList.map(async (el) => { this.checkList.map(async (el) => {
try { try {
const outputDir = path.dirname(el.productionFile); const outputDir = path.dirname(el.productionFile);
console.log(outputDir);
const outputFileName = `${uuid.v4()}.png`; const outputFileName = `${uuid.v4()}.png`;
const outputPath = path.join(outputDir, outputFileName); const outputPath = path.join(outputDir, outputFileName);
const params = { const params = {
...@@ -839,6 +841,7 @@ export default { ...@@ -839,6 +841,7 @@ export default {
}) })
); );
console.log("processQueue", processQueue); console.log("processQueue", processQueue);
// 等待所有异步操作完成 // 等待所有异步操作完成
await new Promise((resolve) => setTimeout(resolve, 100)); await new Promise((resolve) => setTimeout(resolve, 100));
const newMap = new Map(processQueue.map((el) => [el.designId, el])); const newMap = new Map(processQueue.map((el) => [el.designId, el]));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment