Commit 310ba674 authored by hewenhao's avatar hewenhao

feat: fix

parent dd33f887
......@@ -92,13 +92,13 @@ async function uploadFolder ({ fileList, outputFileName, cachedOutputFileName })
.all(resultList.map(uploadFile))
.then((result) => {
const mapper = result.reduce((ret, item) => ({
...ret,
[item.fileName]: {
u: item.url,
w: item.width,
h: item.height,
ossName: item.ossName
},
...ret
}), lastUpload)
fs.writeFileSync(cachedOutputFileName, JSON.stringify(mapper, null, 2))
......
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