From 4c635e9fe310b6f35c6d2a85d3acc31024347f05 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Tue, 23 Jul 2024 14:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=9C=9F=EF=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/file.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/file.js b/src/main/file.js index 920ecec..5d516f9 100644 --- a/src/main/file.js +++ b/src/main/file.js @@ -182,8 +182,10 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) { let file = new File([data], name, { type: fileType }) + const stats = fs.statSync(path) formData.append('file', file) formData.append('md5', md5) + formData.append('lastModifyTime', stats.mtime.toLocaleString()) axios .post(url, formData, config) .then((response) => { -- 2.44.0.windows.1