0
0

修复bug

This commit is contained in:
2026-03-27 10:34:38 +08:00
parent 1111e03bf4
commit 539caa4b5f
4 changed files with 22 additions and 16 deletions

View File

@ -450,8 +450,9 @@ public class AudioProcessService {
throw new IllegalArgumentException("只允许上传MP3、WAV、PCM格式的音频文件");
}
long fileSize = 256 * 1024;
// 检查文件大小
if (file.getSize() > MAX_AUDIO_SIZE) {
if (file.getSize() > fileSize) {
throw new IllegalArgumentException("音频大小不能超过5MB");
}
}