forked from dyf/fys-Multi-tenant
修复bug
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user