yijiusmile
2021-04-01 ce353609f8682efaa4a4e6f62957f01ef5ef005b
febs-common/febs-common-core/src/main/java/cc/mrbird/febs/common/core/utils/MyUtil.java
@@ -117,9 +117,9 @@
        //原本名字
        String fileName = file.getOriginalFilename();
        String suffix = "";
        if (fileName.indexOf(".") > 0) {
        if (fileName.lastIndexOf(".") > 0) {
            //后缀
            suffix = fileName.substring(fileName.indexOf("."));
            suffix = fileName.substring(fileName.lastIndexOf("."));
        }
        //生成新的名字
        String newName = nextIdStr + suffix;