【fix】 文件下载修复

This commit is contained in:
Kris 2025-11-21 16:33:30 +08:00
parent 723a9340b9
commit 6fdf08ae13

View File

@ -168,7 +168,7 @@ public class FileServiceImpl implements FileService {
// 创建从开始年份到当前年份的子目录
for (int year = beginYear; year <= currentYear; year++) {
File yearDir = new File(Const.SERVER_FILE_PATH + "/" + api + "" + year);
File yearDir = new File(Const.SERVER_FILE_PATH + "/" + api + "-" + year);
if (!yearDir.exists()) {
yearDir.mkdir();
}