Commit 93ca57b8 authored by fhj's avatar fhj

文件服务 - 修复

parent 4def486e
......@@ -38,7 +38,7 @@ public class AliyunOSSUtil {
fileName = fileName.substring(0, fileName.lastIndexOf("."));
// String suffix = fileName.split("\\.")[1];
// fileName = fileName.split("\\.")[0];
fileName = fileName.concat(UUID.randomUUID().toString().replace("-", "") + ".".concat(suffix));
fileName = fileName.concat(UUID.randomUUID().toString().replace("-", "").concat(suffix));
PutObjectResult putObjectResult = client.putObject(constantConfig.getBucketName(), fileName, inputStream);
if (null != putObjectResult) {
url = HTTP + constantConfig.getBucketName() + "." + constantConfig.getWebUrl() + "/" + fileName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment