BUGFIX: 获取模块内容-pose transfer返回的图片无法显示

This commit is contained in:
2025-07-02 13:35:15 +08:00
parent 8c87333fa2
commit 1f824f3ae6

View File

@@ -1269,7 +1269,16 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
}else {
PoseTransformationVO poseTransformationVO = CopyUtil.copyObject(item, PoseTransformationVO.class);
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);
}
});