BUGFIX: 获取模块内容-pose transfer返回的图片无法显示
This commit is contained in:
@@ -1269,7 +1269,16 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
|
|||||||
}else {
|
}else {
|
||||||
PoseTransformationVO poseTransformationVO = CopyUtil.copyObject(item, PoseTransformationVO.class);
|
PoseTransformationVO poseTransformationVO = CopyUtil.copyObject(item, PoseTransformationVO.class);
|
||||||
poseTransformationVO.setTaskId(item.getUniqueId());
|
poseTransformationVO.setTaskId(item.getUniqueId());
|
||||||
poseTransformationVO.setStatus("Executing");
|
poseTransformationVO.setProductImage(minioUtil.getPreSignedUrl(item.getProductImage(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
|
if (!StringUtil.isNullOrEmpty(poseTransformationVO.getGifUrl())) {
|
||||||
|
poseTransformationVO.setGifUrl(minioUtil.getPreSignedUrl(poseTransformationVO.getGifUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
|
}
|
||||||
|
if (!StringUtil.isNullOrEmpty(poseTransformationVO.getVideoUrl())) {
|
||||||
|
poseTransformationVO.setVideoUrl(minioUtil.getPreSignedUrl(poseTransformationVO.getVideoUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
|
}
|
||||||
|
if (!StringUtil.isNullOrEmpty(poseTransformationVO.getFirstFrameUrl())) {
|
||||||
|
poseTransformationVO.setFirstFrameUrl(minioUtil.getPreSignedUrl(poseTransformationVO.getFirstFrameUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
|
}
|
||||||
vos.add(poseTransformationVO);
|
vos.add(poseTransformationVO);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user