BUGFIX: 获取万相的生成结果时没有返回status

This commit is contained in:
2025-07-22 17:36:16 +08:00
parent 07571aaad1
commit 229e1353f4

View File

@@ -2253,12 +2253,12 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
PoseTransformationVO poseTransformationVO = new PoseTransformationVO();
switch (status) {
case STATUS_SUCCESS:
poseTransformationVO.setStatus("Success");
List<PoseTransformation> poseTransformations = poseTransformationMapper.selectList(new QueryWrapper<PoseTransformation>().eq("unique_id", taskId).orderByDesc("id"));
if (!poseTransformations.isEmpty()) {
PoseTransformation poseTransformation = poseTransformations.get(0);
poseTransformationVO = CopyUtil.copyObject(poseTransformation, PoseTransformationVO.class);
// 生成视频的gif和第一帧图片
poseTransformationVO.setStatus("Success");
processVideo(videoUrl, poseTransformation);
poseTransformationVO.setId(poseTransformation.getId());
if (!StringUtil.isNullOrEmpty(poseTransformation.getGifUrl())) {