feat(wallet): 무료 회원 계좌 종류별 2개 한도 (유료 무제한)
- createWallet 에 premium 여부 전달, 무료는 종류별 countByType >= 한도면 400 - 한도 계산을 freeWalletLimit 한 곳에 모음(추후 포인트 상점의 영구 보너스 슬롯 최대 5까지 확장 지점) - 복원(BackupService)은 본인 데이터 복구라 한도 우회 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,8 @@ public class BackupService {
|
||||
wr.setOpeningBalance(w.getOpeningBalance());
|
||||
wr.setOpeningDate(w.getOpeningDate());
|
||||
wr.setCurrentValue(w.getCurrentValue());
|
||||
Long newId = accountService.createWallet(wr, memberId).getId();
|
||||
// 복원은 사용자 본인 데이터 복구이므로 무료 한도(종류별 2개)를 적용하지 않는다.
|
||||
Long newId = accountService.createWallet(wr, memberId, true).getId();
|
||||
if (w.getOldId() != null) walletMap.put(w.getOldId(), newId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user