📅  最后修改于: 2022-03-11 15:02:27.590000             🧑  作者: Mango
const fileContents = new Buffer(attachmentResponse.data.data, 'base64')
fs.writeFile(part.filename, fileContents, (err) => {
if (err) return console.error(err)
console.log('file saved to ', part.filename)
})