release: v3.5.0

This commit is contained in:
2025-03-05 21:39:12 +08:00
parent 82f3df59c3
commit 9b53e6dc58
5 changed files with 58 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ public class GlobalExceptionHandler {
} else {
return defaultFail;
}
return R.fail(String.valueOf(HttpStatus.BAD_REQUEST.value()), "请上传小于 %s bytes 的文件".formatted(sizeLimit));
return R.fail(String.valueOf(HttpStatus.BAD_REQUEST.value()), "请上传小于 %s MB 的文件".formatted(Long.parseLong(sizeLimit) / 1024 / 1024));
}
/**