From b3024fd012fc39bc0cbe52a5775748df428fe5ee Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 12 三月 2021 09:22:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java b/febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java
index 944c378..86a0f69 100644
--- a/febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java
+++ b/febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java
@@ -108,8 +108,8 @@
if (file.getSize() <= 0) {
throw new FebsException("上传的文件大小需要大于0kb");
}
- if (file.getSize() > 50 * 1024* 1024) {
- throw new FebsException("上传的文件大于50M");
+ if (file.getSize() > 200 * 1024* 1024) {
+ throw new FebsException("上传的文件大于200M");
}
if (!FileUtil.exist(uploadPpath)) {
FileUtil.mkdir(uploadPpath);
@@ -119,7 +119,7 @@
String suffix = "";
if (fileName.indexOf(".") > 0) {
//后缀
- suffix = fileName.substring(fileName.indexOf("."), fileName.length());
+ suffix = fileName.substring(fileName.indexOf("."));
}
//生成新的名字
String newName = nextIdStr + suffix;
--
Gitblit v1.8.0