Skip to content

Commit

Permalink
fix: 优化商品图片获取
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiGaoRobot committed Jan 24, 2024
1 parent fb48bce commit a2496b2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ public Map<String, Object> getGoodsSkuDetail(String goodsId, String skuId) {
}

}
goodsSkuDetail.getGoodsGalleryList().addAll(goodsVO.getGoodsGalleryList());
if (goodsSkuDetail.getGoodsGalleryList() == null || goodsSkuDetail.getGoodsGalleryList().isEmpty()) {
goodsSkuDetail.setGoodsGalleryList(goodsVO.getGoodsGalleryList());
} else {
goodsSkuDetail.getGoodsGalleryList().addAll(goodsVO.getGoodsGalleryList());
}
map.put("data", goodsSkuDetail);

//获取分类
Expand Down

0 comments on commit a2496b2

Please sign in to comment.