스미싱의심/간편결제 첫결제 슬랙알림 추가
This commit is contained in:
parent
60181ba53d
commit
1b2ad92a51
@ -619,6 +619,47 @@ public class MjonPayV2Controller {
|
|||||||
|
|
||||||
rtnMsg = "SUCCESS";
|
rtnMsg = "SUCCESS";
|
||||||
|
|
||||||
|
try {
|
||||||
|
// 대상 : 휴대폰결제, 즉시이체, 전용계좌
|
||||||
|
// Step 1. 스미싱의심 지정 여부
|
||||||
|
JoinSettingVO joinSettingVO = new JoinSettingVO();
|
||||||
|
joinSettingVO = egovSiteManagerService.selectAdminNotiDetail();
|
||||||
|
if (joinSettingVO != null && joinSettingVO.getSmishingNoti().equals("Y")) {
|
||||||
|
// Step 1. 개인회원 여부 체크
|
||||||
|
int isPersnalMemberCnt = egovSiteManagerService.selectPersnalMemberCnt(Userid);
|
||||||
|
if (isPersnalMemberCnt == 1) {
|
||||||
|
// Step 2. 첫결제 여부 체크
|
||||||
|
int isFirstPayCnt = egovSiteManagerService.selectFirstPayCnt(Userid);
|
||||||
|
if (isFirstPayCnt == 1) {
|
||||||
|
// SMS 체크
|
||||||
|
if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) {
|
||||||
|
// 스미싱의심 SMS 알림전송
|
||||||
|
mjonNoticeSendUtil.smishingSmsNoticeSend("스미싱의심/간편결제 첫결제", Userid, mberNm);
|
||||||
|
}
|
||||||
|
|
||||||
|
// SLACK 체크
|
||||||
|
if (joinSettingVO != null && joinSettingVO.getSlackNoti().equals("Y")) {
|
||||||
|
// Slack 메시지 발송(단순본문)
|
||||||
|
String msg = "[문자온] 스미싱의심/간편결제 첫결제 - " + mberNm +"("+ Userid + ")";
|
||||||
|
mjonCommon.sendSimpleSlackMsg(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 스미싱 의심회원으로 변경
|
||||||
|
UserManageVO userManageVO = new UserManageVO();
|
||||||
|
userManageVO.setSmishingYn("Y");
|
||||||
|
userManageVO.setMberId(Userid);
|
||||||
|
userManageService.updateOneUserSmishingYnNotAlert(userManageVO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
System.out.println("#############################################################");
|
||||||
|
System.out.println("KG MOBILIANS NotiUrl - CARD 슬랙알림 & 스미싱의심 처리 Error");
|
||||||
|
System.out.println("KG MOBILIANS NotiUrl - CARD Tradeid : " + Tradeid);
|
||||||
|
System.out.println("KG MOBILIANS NotiUrl - CARD e.getMessage() : " + e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
System.out.println("#############################################################");
|
System.out.println("#############################################################");
|
||||||
System.out.println("KG MOBILIANS NotiUrl - CARD Tradeid : " + Tradeid);
|
System.out.println("KG MOBILIANS NotiUrl - CARD Tradeid : " + Tradeid);
|
||||||
System.out.println("KG MOBILIANS NotiUrl - CARD returnMsg : " + rtnMsg);
|
System.out.println("KG MOBILIANS NotiUrl - CARD returnMsg : " + rtnMsg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user