|
@@ -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失败");
|
|
|
}
|