간편결제 문구 수정
@19c408a022c3202c73a1e437ba4330d5e8c38abc
--- src/main/java/itn/let/mjo/pay/web/MjonPayV2Controller.java
+++ src/main/java/itn/let/mjo/pay/web/MjonPayV2Controller.java
... | ... | @@ -193,7 +193,7 @@ |
| 193 | 193 |
// |
| 194 | 194 |
|
| 195 | 195 |
/** |
| 196 |
- * KGM 카드결제 정보 Encode |
|
| 196 |
+ * KGM 간편결제 정보 Encode |
|
| 197 | 197 |
* @param MjonPayVO |
| 198 | 198 |
* @param modelAndView |
| 199 | 199 |
* @return /web/member/pay/kgmCardEncodeAjax.do |
... | ... | @@ -412,7 +412,7 @@ |
| 412 | 412 |
// SMS 체크 |
| 413 | 413 |
if (joinSettingVO != null && joinSettingVO.getSmsNoti().equals("Y")) {
|
| 414 | 414 |
// 스미싱의심 SMS 알림전송 |
| 415 |
- mjonNoticeSendUtil.smishingSmsNoticeSend("카드결제 데이터 위·변조 가능성 결제오류 처리", Userid, "");
|
|
| 415 |
+ mjonNoticeSendUtil.smishingSmsNoticeSend("간편결제 데이터 위·변조 가능성 결제오류 처리", Userid, "");
|
|
| 416 | 416 |
} |
| 417 | 417 |
|
| 418 | 418 |
// SLACK 체크 |
... | ... | @@ -506,7 +506,7 @@ |
| 506 | 506 |
mjonPayVO.setResultCode(Resultcd); |
| 507 | 507 |
mjonPayVO.setResultMsg(Resultmsg); |
| 508 | 508 |
mjonPayVO.setAmt(Prdtprice); // 결제금액 |
| 509 |
- mjonPayVO.setPayMethod("CARD"); // 결제방법
|
|
| 509 |
+ mjonPayVO.setPayMethod("SPAY"); // 결제방법
|
|
| 510 | 510 |
mjonPayVO.setPgCode("KGM"); //
|
| 511 | 511 |
mjonPayVO.setGoodsName(Prdtnm); // |
| 512 | 512 |
mjonPayVO.setPhone(""); // 모바일
|
... | ... | @@ -566,10 +566,10 @@ |
| 566 | 566 |
|
| 567 | 567 |
String rstMsg = ""; |
| 568 | 568 |
if("0000".equals(request.getParameter("Resultcd"))) {
|
| 569 |
- rstMsg = "카드결제가 정상적으로 완료되었습니다."; |
|
| 569 |
+ rstMsg = "간편결제가 정상적으로 완료되었습니다."; |
|
| 570 | 570 |
} |
| 571 | 571 |
else {
|
| 572 |
- rstMsg = "카드결제가 실패했습니다."; |
|
| 572 |
+ rstMsg = "간편결제가 실패했습니다."; |
|
| 573 | 573 |
} |
| 574 | 574 |
|
| 575 | 575 |
model.addAttribute("Resultcd", request.getParameter("Resultcd"));
|
... | ... | @@ -1464,24 +1464,31 @@ |
| 1464 | 1464 |
// Get Ip |
| 1465 | 1465 |
public static String getClientIP(HttpServletRequest request) {
|
| 1466 | 1466 |
String ip = request.getHeader("X-Forwarded-For");
|
| 1467 |
- |
|
| 1468 |
- if (ip == null) {
|
|
| 1467 |
+ String ipMethod = "X-Forwarded-For"; |
|
| 1468 |
+ |
|
| 1469 |
+ if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
| 1469 | 1470 |
ip = request.getHeader("Proxy-Client-IP");
|
| 1471 |
+ ipMethod = "Proxy-Client-IP"; |
|
| 1470 | 1472 |
} |
| 1471 |
- if (ip == null) {
|
|
| 1473 |
+ if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
| 1472 | 1474 |
ip = request.getHeader("WL-Proxy-Client-IP");
|
| 1475 |
+ ipMethod = "WL-Proxy-Client-IP"; |
|
| 1473 | 1476 |
} |
| 1474 |
- if (ip == null) {
|
|
| 1477 |
+ if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
| 1475 | 1478 |
ip = request.getHeader("HTTP_CLIENT_IP");
|
| 1479 |
+ ipMethod = "HTTP_CLIENT_IP"; |
|
| 1476 | 1480 |
} |
| 1477 |
- if (ip == null) {
|
|
| 1481 |
+ if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
| 1478 | 1482 |
ip = request.getHeader("HTTP_X_FORWARDED_FOR");
|
| 1483 |
+ ipMethod = "HTTP_X_FORWARDED_FOR"; |
|
| 1479 | 1484 |
} |
| 1480 |
- if (ip == null) {
|
|
| 1485 |
+ if(ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
|
| 1481 | 1486 |
ip = request.getRemoteAddr(); |
| 1487 |
+ ipMethod = "getRemoteAddr"; |
|
| 1482 | 1488 |
} |
| 1483 |
- |
|
| 1489 |
+ |
|
| 1484 | 1490 |
System.out.println("#############################################################");
|
| 1491 |
+ System.out.println("KG MOBILIANS NotiUrl - getClientIP : " + ipMethod);
|
|
| 1485 | 1492 |
System.out.println("KG MOBILIANS NotiUrl - getClientIP : " + ip);
|
| 1486 | 1493 |
|
| 1487 | 1494 |
return ip; |
--- src/main/webapp/WEB-INF/jsp/web/cop/kgmV2/cardOkUrl.jsp
+++ src/main/webapp/WEB-INF/jsp/web/cop/kgmV2/cardOkUrl.jsp
... | ... | @@ -56,7 +56,7 @@ |
| 56 | 56 |
<div class="layer_in" style="height: 330px; padding-top: 0px; !important;"> |
| 57 | 57 |
<div class="img_box"><img src="/publish/images/content/pay_complete_img.png" alt="" /></div> |
| 58 | 58 |
<div class="text_box"> |
| 59 |
- <div class="title">신용카드 결제</div> |
|
| 59 |
+ <div class="title">간편 결제</div> |
|
| 60 | 60 |
<p><c:out value='${Resultmsg}'/></p>
|
| 61 | 61 |
</div> |
| 62 | 62 |
<div class="popup_btn" style="margin: 30px auto 0 auto;"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?