Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 10cffef4
authored
May 12, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:代码回退
1 parent
f7d3e95e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
aus-core/src/main/java/com/glsx/usedcar/storage/AliyunOssService.java
aus-core/src/main/java/com/glsx/usedcar/storage/AliyunOssService.java
View file @
10cffef
...
@@ -283,13 +283,8 @@ public class AliyunOssService extends AbstractStorageService {
...
@@ -283,13 +283,8 @@ public class AliyunOssService extends AbstractStorageService {
// 执行上传
// 执行上传
ossClient
.
putObject
(
putObjectRequest
);
ossClient
.
putObject
(
putObjectRequest
);
Map
<
String
,
String
>
parameter
=
null
;
if
(
isImageFile
(
fileInfo
.
getName
()))
{
parameter
=
new
HashMap
<>();
parameter
.
put
(
"x-oss-process"
,
"image/format,jpg"
);
}
// 设置文件信息
// 设置文件信息
fileInfo
.
setUrl
(
getFileUrl
(
fileInfo
.
getFilePath
()
,
null
,
parameter
));
fileInfo
.
setUrl
(
getFileUrl
(
fileInfo
.
getFilePath
()));
// 获取文件大小
// 获取文件大小
OSSObject
ossObject
=
ossClient
.
getObject
(
bucketName
,
filePath
);
OSSObject
ossObject
=
ossClient
.
getObject
(
bucketName
,
filePath
);
...
@@ -298,7 +293,7 @@ public class AliyunOssService extends AbstractStorageService {
...
@@ -298,7 +293,7 @@ public class AliyunOssService extends AbstractStorageService {
String
thumbPath
=
this
.
thumbnails
(
fileInfo
.
getName
(),
filePath
);
String
thumbPath
=
this
.
thumbnails
(
fileInfo
.
getName
(),
filePath
);
if
(
StringUtils
.
isNotBlank
(
thumbPath
))
{
if
(
StringUtils
.
isNotBlank
(
thumbPath
))
{
fileInfo
.
setThumbPath
(
thumbPath
);
fileInfo
.
setThumbPath
(
thumbPath
);
fileInfo
.
setThumbUrl
(
this
.
getFileUrl
(
thumbPath
,
null
,
parameter
));
fileInfo
.
setThumbUrl
(
this
.
getFileUrl
(
thumbPath
));
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment