content返回url

This commit is contained in:
2025-09-23 10:40:04 +08:00
parent 90b6f53986
commit ae0cf56216
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ public class ContentPageVO {
private int lockType;
// 内容id contentType为0或1时才有值
private Long contentId;
private String videoUrl;
// 模版id
private Long templateId;
private String templateCoverUrl;

View File

@@ -691,6 +691,7 @@ public class FaceServiceImpl implements FaceService {
contentPageVO.setContentId(memberVideoEntityList.getFirst().getVideoId());
VideoEntity video = videoRepository.getVideo(contentPageVO.getContentId());
if (video != null) {
contentPageVO.setVideoUrl(video.getVideoUrl());
contentPageVO.setDuration(video.getDuration());
contentPageVO.setLockType(-1);
TaskUpdateResult updResult = videoTaskRepository.checkTaskUpdate(video.getTaskId());