포인트 결제 금액변조 방지 기능 수정
This commit is contained in:
parent
5114a2308a
commit
c287701e1a
@ -3807,6 +3807,20 @@ public class MjonPayController {
|
||||
mjonPayVO.setFrstRegisterId(user.getId());
|
||||
mjonPayVO.setUserId(user.getId());
|
||||
|
||||
RefundVO refundVO = new RefundVO();
|
||||
refundVO.setMberId(user.getId());
|
||||
|
||||
RefundVO mberInfoVO = refundService.selectRefundMberInfo(refundVO);
|
||||
if(Double.parseDouble(mberInfoVO.getMberPoint())
|
||||
< mjonPayVO.getPoint()) {
|
||||
|
||||
modelAndView.addObject("status", "moreThanUserPoint");
|
||||
modelAndView.addObject("msg", "현재 회원의 보유포인트보다 큰 포인트를 환불 할 수 없습니다.");
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
if("1".equals(mjonPayVO.getType())){ //현금전환 시
|
||||
mjonPayVO.setMemo("현금 "+mjonPayVO.getPoint()+" 전환"); //전환 내용
|
||||
mjonPayVO.setCmpltYn("N"); //현금 전환 시 처리 전
|
||||
|
||||
@ -597,6 +597,13 @@ function actionLogin() {
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: function (returnData, status) {
|
||||
|
||||
//보유 금액 변조 방지
|
||||
if(returnData.status == 'moreThanUserPoint'){
|
||||
alert(returnData.msg)
|
||||
return;
|
||||
}
|
||||
|
||||
if(status == 'success'){
|
||||
alert(successAlertWord);
|
||||
location.reload();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user