Bladeren bron

电子回单调整附件上传

wangjun 3 weken geleden
bovenliggende
commit
c74a7f04ae

+ 2 - 2
code/jyyy/nckd-jimin-jyyy-fi/src/main/java/nckd/jimin/jyyy/fi/webapi/AttachmentFileUtil.java

@@ -339,13 +339,13 @@ public class AttachmentFileUtil {
         return b.toString();
     }
 
-    public static StringBuilder getUid() {
+    public static String getUid() {
         StringBuilder uid = new StringBuilder("rc-upload-");
         uid.append((new Date()).getTime());
         uid.append("-");
         int index = (int) (1.0D + Math.random() * 10.0D);
         uid.append(index);
-        return uid;
+        return uid.toString();
     }
 
     public static void downloadFile(String fileUrl, String saveDir) throws IOException {