간편결제 문구 수정

This commit is contained in:
itn 2023-07-03 11:03:58 +09:00
parent 26326c5d6c
commit 19c408a022
2 changed files with 20 additions and 13 deletions

View File

@ -193,7 +193,7 @@ public class MjonPayV2Controller {
// //
/** /**
* KGM 카드결제 정보 Encode * KGM 간편결제 정보 Encode
* @param MjonPayVO * @param MjonPayVO
* @param modelAndView * @param modelAndView
* @return /web/member/pay/kgmCardEncodeAjax.do * @return /web/member/pay/kgmCardEncodeAjax.do
@ -412,7 +412,7 @@ public class MjonPayV2Controller {
// SMS 체크 // SMS 체크
if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) { if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) {
// 스미싱의심 SMS 알림전송 // 스미싱의심 SMS 알림전송
mjonNoticeSendUtil.smishingSmsNoticeSend("카드결제 데이터 위·변조 가능성 결제오류 처리", Userid, ""); mjonNoticeSendUtil.smishingSmsNoticeSend("간편결제 데이터 위·변조 가능성 결제오류 처리", Userid, "");
} }
// SLACK 체크 // SLACK 체크
@ -506,7 +506,7 @@ public class MjonPayV2Controller {
mjonPayVO.setResultCode(Resultcd); mjonPayVO.setResultCode(Resultcd);
mjonPayVO.setResultMsg(Resultmsg); mjonPayVO.setResultMsg(Resultmsg);
mjonPayVO.setAmt(Prdtprice); // 결제금액 mjonPayVO.setAmt(Prdtprice); // 결제금액
mjonPayVO.setPayMethod("CARD"); // 결제방법 mjonPayVO.setPayMethod("SPAY"); // 결제방법
mjonPayVO.setPgCode("KGM"); // mjonPayVO.setPgCode("KGM"); //
mjonPayVO.setGoodsName(Prdtnm); // mjonPayVO.setGoodsName(Prdtnm); //
mjonPayVO.setPhone(""); // 모바일 mjonPayVO.setPhone(""); // 모바일
@ -566,10 +566,10 @@ public class MjonPayV2Controller {
String rstMsg = ""; String rstMsg = "";
if("0000".equals(request.getParameter("Resultcd"))) { if("0000".equals(request.getParameter("Resultcd"))) {
rstMsg = "카드결제가 정상적으로 완료되었습니다."; rstMsg = "간편결제가 정상적으로 완료되었습니다.";
} }
else { else {
rstMsg = "카드결제가 실패했습니다."; rstMsg = "간편결제가 실패했습니다.";
} }
model.addAttribute("Resultcd", request.getParameter("Resultcd")); model.addAttribute("Resultcd", request.getParameter("Resultcd"));
@ -1464,24 +1464,31 @@ public class MjonPayV2Controller {
// Get Ip // Get Ip
public static String getClientIP(HttpServletRequest request) { public static String getClientIP(HttpServletRequest request) {
String ip = request.getHeader("X-Forwarded-For"); String ip = request.getHeader("X-Forwarded-For");
String ipMethod = "X-Forwarded-For";
if (ip == null) {
if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("Proxy-Client-IP"); ip = request.getHeader("Proxy-Client-IP");
ipMethod = "Proxy-Client-IP";
} }
if (ip == null) { if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("WL-Proxy-Client-IP"); ip = request.getHeader("WL-Proxy-Client-IP");
ipMethod = "WL-Proxy-Client-IP";
} }
if (ip == null) { if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("HTTP_CLIENT_IP"); ip = request.getHeader("HTTP_CLIENT_IP");
ipMethod = "HTTP_CLIENT_IP";
} }
if (ip == null) { if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("HTTP_X_FORWARDED_FOR"); ip = request.getHeader("HTTP_X_FORWARDED_FOR");
ipMethod = "HTTP_X_FORWARDED_FOR";
} }
if (ip == null) { if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getRemoteAddr(); ip = request.getRemoteAddr();
ipMethod = "getRemoteAddr";
} }
System.out.println("#############################################################"); System.out.println("#############################################################");
System.out.println("KG MOBILIANS NotiUrl - getClientIP : " + ipMethod);
System.out.println("KG MOBILIANS NotiUrl - getClientIP : " + ip); System.out.println("KG MOBILIANS NotiUrl - getClientIP : " + ip);
return ip; return ip;

View File

@ -56,7 +56,7 @@ function goClose() {
<div class="layer_in" style="height: 330px; padding-top: 0px; !important;"> <div class="layer_in" style="height: 330px; padding-top: 0px; !important;">
<div class="img_box"><img src="/publish/images/content/pay_complete_img.png" alt="" /></div> <div class="img_box"><img src="/publish/images/content/pay_complete_img.png" alt="" /></div>
<div class="text_box"> <div class="text_box">
<div class="title">신용카드 결제</div> <div class="title">간편 결제</div>
<p><c:out value='${Resultmsg}'/></p> <p><c:out value='${Resultmsg}'/></p>
</div> </div>
<div class="popup_btn" style="margin: 30px auto 0 auto;"> <div class="popup_btn" style="margin: 30px auto 0 auto;">