BUGFIX: detail中的default模式报错
This commit is contained in:
@@ -3090,19 +3090,14 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
|
||||
return vo;
|
||||
}
|
||||
|
||||
public List<Map<String, Object>> getAllPose() {
|
||||
public List<Map<String, String>> getAllPose() {
|
||||
List<Map<String, String>> propertyList = PoseEnum.getPropertyList();
|
||||
List<Map<String, Object>> resp = new ArrayList<>();
|
||||
propertyList.forEach(item -> {
|
||||
HashMap<String, Object> temp = new HashMap<>();
|
||||
|
||||
// item.put("gif", minioUtil.getPreSignedUrl(item.get("gif"), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
temp.put("id", Integer.parseInt(item.get("id")));
|
||||
temp.put("video", minioUtil.getPreSignedUrl(item.get("video"), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
temp.put("firstFrame", minioUtil.getPreSignedUrl(item.get("firstFrame"), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
resp.add(temp);
|
||||
item.put("video", minioUtil.getPreSignedUrl(item.get("video"), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
item.put("firstFrame", minioUtil.getPreSignedUrl(item.get("firstFrame"), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
});
|
||||
return resp;
|
||||
return propertyList;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user