Browse Source

no message

FengChaoYu 3 weeks ago
parent
commit
74a33e821b

+ 2 - 2
src/main/java/com/gree/mall/contest/logic/common/CommonLogic.java

@@ -208,7 +208,7 @@ public class CommonLogic {
      * @return
      * @throws IOException
      */
-    public CommonFile uploadFile( MultipartFile file) throws IOException, RemoteServiceException {
+    public CommonFile uploadFile(MultipartFile file) throws IOException, RemoteServiceException {
 
         if (file == null || file.isEmpty()) {
             return null;
@@ -226,7 +226,7 @@ public class CommonLogic {
         }
 
         try {
-            String filePath = ossUtil.getFilePath() + "/" + currentTime + UUID.randomUUID().toString() + "." + uploadFileSuffix;
+            String filePath = ossUtil.getFilePath() + "/" + currentTime + UUID.randomUUID() + "." + uploadFileSuffix;
             if (!ossUtil.uploadFile(filePath, file.getBytes())) {
                 throw new RemoteServiceException("文件同步oss失败");
             }

BIN
src/main/resources/file/font_2075393_0cjq4n8ykvds.ttf


BIN
src/main/resources/file/font_2075393_0cjq4n8ykvds.woff


BIN
src/main/resources/file/font_2075393_0cjq4n8ykvds.woff2