BUGFIX: 获取万相的生成结果时没有返回status
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user