From b8ede729508288e1ae724fd0c516753808e7c465 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期六, 27 三月 2021 10:07:54 +0800
Subject: [PATCH] fix(bug修复): 除基本信息外,其它信息导入后自动提交

---
 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