Commit 76ac60e9 authored by Zheng Jie's avatar Zheng Jie
Browse files

文件超出规定大小提示优化

parent 7e85fb2e
......@@ -253,7 +253,7 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
// 1M
int len = 1024 * 1024;
if (size > (maxSize * len)) {
throw new BadRequestException("文件超出规定大小" + maxSize + "M");
throw new BadRequestException("文件超出规定大小:" + maxSize + "MB");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment