|
|
@ -110,7 +110,7 @@ public class OssServiceImpl extends BaseServiceImpl<OssDao, OssEntity> implement |
|
|
|
String url = null; |
|
|
|
String ossDomain = null; |
|
|
|
try { |
|
|
|
byte[] fileBytes = compressPicCycle(file.getBytes(),200L,0.7); |
|
|
|
byte[] fileBytes = compressPicCycle(file.getBytes(),200L,0.3); |
|
|
|
AbstractCloudStorageService storageService = OssFactory.build(); |
|
|
|
url = storageService.uploadSuffix(fileBytes, extension, privacy); |
|
|
|
ossDomain = storageService.getOssDomain(privacy); |
|
|
|