|
@@ -208,7 +208,7 @@ public class CommonController
|
|
|
String prefix = fileName.substring(0, fileName.lastIndexOf("."));
|
|
String prefix = fileName.substring(0, fileName.lastIndexOf("."));
|
|
|
CloudStorageService storage = OSSFactory.build();
|
|
CloudStorageService storage = OSSFactory.build();
|
|
|
String url = storage.upload(file.getBytes(), prefix+System.currentTimeMillis()+suffix);
|
|
String url = storage.upload(file.getBytes(), prefix+System.currentTimeMillis()+suffix);
|
|
|
- return R.ok().put("url",url);
|
|
|
|
|
|
|
+ return R.ok().put("url",url).put("fileName",fileName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("common/uploadOSSByHOOKImage")
|
|
@PostMapping("common/uploadOSSByHOOKImage")
|