Skip to content

Commit

Permalink
Merge pull request #55 from marinesnow34/img
Browse files Browse the repository at this point in the history
Fix: 결제 페이지 이미지 안불러오는 오류 해결
  • Loading branch information
marinesnow34 authored Nov 22, 2023
2 parents 5583df4 + 5d8c242 commit eed6ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public class CartDto {
private String name;
private Long count;
private Long totalPrice;
private String imgUrl;
private List<OptionDto> options;
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ private CartDto cartItemToCartDto(CartItem cartItem, Long inout) {
.idx(cartItem.getId())
.name(cartItem.getFoodie().getName())
.count(cartItem.getCount())
// img
.imgUrl(cartItem.getFoodie().getImgUrl() != null
? IMG_URL + cartItem.getFoodie().getImgUrl() + "/"
+ cartItem.getFoodie().getImgUrl()
: null)
.totalPrice(cartItemTotalPrice(cartItem, inout))
.options(
cartItem.getCartOptions()
Expand Down

0 comments on commit eed6ba0

Please sign in to comment.