From 4648dbf2c8d70f0459b8e6d9170dfbd52a33f7fd Mon Sep 17 00:00:00 2001 From: unknown <1371033826@qq.com> Date: Wed, 11 Jun 2025 18:11:40 +0800 Subject: [PATCH] bug-fix --- mixio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mixio.js b/mixio.js index cf15d22..e152e48 100644 --- a/mixio.js +++ b/mixio.js @@ -843,7 +843,7 @@ var mixioServer = async function() { const format = match[1]; const timeStamp = Date.now(); const fileName = `${timeStamp}.${format}`; - const filePath = path.join('img', 'store', topic[0], topic[1], fileName); + const filePath = path.join('store', topic[0], topic[1], fileName); const base64Data = payload.replace(base64Reg, ''); const buffer = Buffer.from(base64Data, 'base64'); fs.mkdirSync(path.dirname(filePath), { recursive: true }); @@ -852,7 +852,7 @@ var mixioServer = async function() { // 全部明文存为txt const timeStamp = Date.now(); const fileName = `${timeStamp}.txt`; - const filePath = path.join('img', 'store', topic[0], topic[1], fileName); + const filePath = path.join('store', topic[0], topic[1], fileName); fs.mkdirSync(path.dirname(filePath), { recursive: true}); fs.writeFileSync(filePath, payload); }