BUGFIX:发布作品中没有like的衣服导致查看作品详细报错
This commit is contained in:
@@ -540,13 +540,15 @@ public class PortfolioServiceImpl extends ServiceImpl<PortfolioMapper, Portfolio
|
||||
}
|
||||
vo.setCollectionElementList(collectionElementList);
|
||||
List<UserLikeSnapshot> userLikeList = projectSnapshot.getUserLikeList();
|
||||
List<TDesignPythonOutfit> list = new ArrayList<>();
|
||||
for (UserLikeSnapshot userLikeSnapshot : userLikeList) {
|
||||
TDesignPythonOutfit designPythonOutfit = userLikeSnapshot.getDesignPythonOutfit();
|
||||
designPythonOutfit.setDesignUrl(minioUtil.getPreSignedUrl(designPythonOutfit.getDesignUrl(), 24 * 60));
|
||||
list.add(designPythonOutfit);
|
||||
if (userLikeList != null && !userLikeList.isEmpty()){
|
||||
List<TDesignPythonOutfit> list = new ArrayList<>();
|
||||
for (UserLikeSnapshot userLikeSnapshot : userLikeList) {
|
||||
TDesignPythonOutfit designPythonOutfit = userLikeSnapshot.getDesignPythonOutfit();
|
||||
designPythonOutfit.setDesignUrl(minioUtil.getPreSignedUrl(designPythonOutfit.getDesignUrl(), 24 * 60));
|
||||
list.add(designPythonOutfit);
|
||||
}
|
||||
vo.setDesignPythonOutfitList(list);
|
||||
}
|
||||
vo.setDesignPythonOutfitList(list);
|
||||
}
|
||||
}
|
||||
Canvas canvas = canvasMapper.selectById(vo.getCanvasId());
|
||||
|
||||
Reference in New Issue
Block a user