Toggle navigation
Toggle navigation
This project
Loading...
Sign in
crp
/
crp-operation
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wanghongbo
2025-09-08 09:40:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e78857594c55dcf20cbe7400f9ea01add101e19
1e788575
1 parent
4e9adf13
增加直播拆条提交到素材库封面图抽帧
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/main/java/com/wondertek/service/impl/BackupMaterialServiceImpl.java
src/main/java/com/wondertek/service/impl/BackupMaterialServiceImpl.java
View file @
1e78857
...
...
@@ -445,6 +445,14 @@ public class BackupMaterialServiceImpl extends ServiceImpl<BackupMaterialMapper,
//封面图
if
(
StringUtils
.
isNotEmpty
(
materialSubmitVo
.
getCoverPath
())){
backupMaterial
.
setCoverPath
(
materialSubmitVo
.
getCoverPath
().
replace
(
realPath
,
""
));
}
else
{
//直播拆条没有封面图时,使用抽帧取封面图
String
coverPath
=
destFilePath
.
substring
(
0
,
destFilePath
.
lastIndexOf
(
"."
))
+
".jpg"
;
if
(
extracted
(
destFilePath
,
coverPath
)){
backupMaterial
.
setCoverPath
(
coverPath
.
replace
(
realPath
,
""
));
}
else
{
backupMaterial
.
setCoverPath
(
""
);
}
}
//时长
backupMaterial
.
setDuration
(
materialSubmitVo
.
getDuration
());
...
...
Please
register
or
login
to post a comment