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