Skip to content

[FEAT] 야구 게임 배팅 금액, 획득 금액을 변경한다. #430

@shkisme

Description

@shkisme

💬 기능 설명

야구게임을 할 수록 포인트 손해를 볼 수 있다는 의견이 있어서, 야구 게임 배팅 금액, 획득 금액을 변경합니다.

if (bettingPoint <= 0) {
throw BusinessException(requestMember.id, "memberId", ErrorCode.POINT_MUST_BE_POSITIVE)
}

위 코드에서 bettingPoint가 음수인지 뿐만 아니라, 1000 ~ 3000 사이의 값인지 검사하는 코드를 추가합니다.


const val MAX_BETTING_POINT = 5000L
const val MIN_BETTING_POINT = 1000L

MAX_BETTING_POINT 상수를 3000L로 변경합니다.


if (baseballResultEntity.isEnd()) {
requestMember.addPoint(earnablePoint, EARN_POINT_MESSAGE)
gameEntity.baseball.baseballDayPoint = earnablePoint
}

earnablePoint를 추가하는 대신에, earnablePoint x 2를 추가합니다.

☑️ TODO

  • bettingPoint가 1000 ~ 3000 사이인지 검사하는 코드 추가
  • MAX_BETTING_POINT 상수를 3000L로 변경
  • member 획득 포인트로 earnablePoint를 추가하는 대신에, earnablePoint x 2를 추가하도록 수정

Metadata

Metadata

Assignees

Labels

👀 good first issue처음 해보기 좋은 이슈🚀 feature새로운 기능 구현 및 개선사항

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions