Skip to content

Commit

Permalink
Feat : 픽셀 주소 파싱 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
koomin1227 committed Oct 6, 2024
1 parent 328fc93 commit f5f9474
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.m3pro.groundflip.domain.dto.pixel;

import java.util.Arrays;
import java.util.List;

import com.m3pro.groundflip.domain.entity.Pixel;
Expand Down Expand Up @@ -31,7 +32,8 @@ public static CommunityPixelInfoResponse from(Pixel pixel, PixelOwnerCommunityRe
if (addressArr[0].equals("대한민국")) {
realAddress = addressArr[0];
} else {
realAddress = addressArr[1] + ' ' + addressArr[2];
realAddress = String.join(" ", Arrays.copyOfRange(addressArr, 1, addressArr.length));
;
}
} else {
realAddress = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.m3pro.groundflip.domain.dto.pixel;

import java.util.Arrays;
import java.util.List;

import com.m3pro.groundflip.domain.entity.Pixel;
Expand Down Expand Up @@ -31,7 +32,8 @@ public static IndividualPixelInfoResponse from(Pixel pixel, PixelOwnerUserRespon
if (addressArr[0].equals("대한민국")) {
realAddress = addressArr[0];
} else {
realAddress = addressArr[1] + ' ' + addressArr[2];
realAddress = String.join(" ", Arrays.copyOfRange(addressArr, 1, addressArr.length));
;
}
} else {
realAddress = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.m3pro.groundflip.domain.dto.pixelUser;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

import com.m3pro.groundflip.domain.entity.Pixel;
Expand Down Expand Up @@ -28,7 +29,7 @@ public static IndividualHistoryPixelInfoResponse from(Pixel pixel, List<LocalDat
if (addressArr[0].equals("대한민국")) {
realAddress = addressArr[0];
} else {
realAddress = addressArr[1] + ' ' + addressArr[2];
realAddress = String.join(" ", Arrays.copyOfRange(addressArr, 1, addressArr.length));
}
} else {
realAddress = null;
Expand Down

0 comments on commit f5f9474

Please sign in to comment.