|
|
|
@ -65,12 +65,13 @@ public class OssUpload {
|
|
|
|
|
fileName = "unnamed.png"; |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotEmpty(myFileName)) { |
|
|
|
|
int index = myFileName.lastIndexOf("."); |
|
|
|
|
if (index == -1) { |
|
|
|
|
realFileName = fileName; |
|
|
|
|
} else { |
|
|
|
|
realFileName = myFileName; |
|
|
|
|
} |
|
|
|
|
realFileName = myFileName; |
|
|
|
|
// int index = myFileName.lastIndexOf(".");
|
|
|
|
|
// if (index == -1) {
|
|
|
|
|
// realFileName = fileName;
|
|
|
|
|
// } else {
|
|
|
|
|
// realFileName = myFileName;
|
|
|
|
|
// }
|
|
|
|
|
} else { |
|
|
|
|
realFileName = fileName; |
|
|
|
|
} |
|
|
|
|