Skip to content

Commit

Permalink
Merge pull request #129 from Haru4Cut/128-fixProfileImage
Browse files Browse the repository at this point in the history
fix: 캐릭터 이미지 요청 값 처리
  • Loading branch information
yooongjun authored May 27, 2024
2 parents dd794f5 + ef9e873 commit d98a9f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/haru4cut/domain/profile/ImageRequestDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public ImageRequestDto(Long sex, Long age, Long hairColor, Long hairLength, Long
public HashMap<String, String> asMap() {
HashMap<String, String> map = new HashMap<>();

map.put("sex", properties[0][this.sex.intValue()]); // 성별
map.put("age", properties[1][this.age.intValue()]); // 나이
map.put("hairColor", properties[2][this.hairColor.intValue()]); // 머리색
map.put("hairLength", properties[3][this.hairLength.intValue()]); // 머리길이
map.put("skinColor", properties[4][this.skinColor.intValue()]); // 피부색
map.put("sex", properties[0][this.sex.intValue() - 1]); // 성별
map.put("age", properties[1][this.age.intValue() - 1]); // 나이
map.put("hairColor", properties[2][this.hairColor.intValue() - 1]); // 머리색
map.put("hairLength", properties[3][this.hairLength.intValue() - 1]); // 머리길이
map.put("skinColor", properties[4][this.skinColor.intValue() - 1]); // 피부색
map.put("etc", this.etc);

return map;
Expand Down

0 comments on commit d98a9f7

Please sign in to comment.