diff --git a/src/main/java/itn/let/mjo/test/web/TestController.java b/src/main/java/itn/let/mjo/test/web/TestController.java index f052cccc..21909ae6 100644 --- a/src/main/java/itn/let/mjo/test/web/TestController.java +++ b/src/main/java/itn/let/mjo/test/web/TestController.java @@ -42,6 +42,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; import org.springframework.ui.ModelMap; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; @@ -3501,5 +3502,40 @@ public class TestController { } + + @RequestMapping("/uss/ion/test/callNicepay.do") + public String callNicepay(Model model) { + String url = "https://dev.nicepay.co.kr/webapi/sslConnectionTest.jsp"; + String mid = "itn180208m"; // 실제 MID 값으로 변경 + + try { + // RestTemplate 사용 + RestTemplate restTemplate = new RestTemplate(); + + // 헤더 설정 + HttpHeaders headers = new HttpHeaders(); + headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED); + + // 파라미터 설정 + MultiValueMap params = new LinkedMultiValueMap<>(); + params.add("MID", mid); + + HttpEntity> request = new HttpEntity<>(params, headers); + + // POST 요청 + ResponseEntity response = restTemplate.postForEntity(url, request, String.class); + + // JSP에 전달 + model.addAttribute("result", response.getBody()); + model.addAttribute("url", url); + model.addAttribute("mid", mid); + + } catch (Exception e) { + model.addAttribute("result", "에러 발생: " + e.getMessage()); + } + + return "uss/ion/test/TestNicePaySSL"; // nicepayResult.jsp로 이동 + } + } diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/test/TestNicePaySSL.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/test/TestNicePaySSL.jsp new file mode 100644 index 00000000..f5533101 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/test/TestNicePaySSL.jsp @@ -0,0 +1,57 @@ +<%@ page contentType="text/html; charset=utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> + + + + +세금계산서 관리 + + + +
+
+
+

Nicepay SSL 호출 결과

+

Nicepay SSL 호출 결과

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
urlmid결과
+ ${url} + + ${mid} + + ${result} +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/webapp/publish/css/common.css b/src/main/webapp/publish/css/common.css index ad3a7148..68682db9 100644 --- a/src/main/webapp/publish/css/common.css +++ b/src/main/webapp/publish/css/common.css @@ -133,7 +133,7 @@ caption, .label {position: absolute;width: 1px;height: 1px;margin: -1px;border: .login2 .check_money .hover_content_wrap{display:inline-block;position:relative;} .login2 .check_money .hover_content_wrap .qmMark{width:17px;height:17px;margin:0 4px 0 0;background:#6a6c72;border-radius:100%;color:#fff;text-align:center;} .login2 .check_money .hover_content_wrap .qmMark:hover+.hover_content{display:block;} -.login2 .check_money .hover_content{display:none;position:absolute;padding:12px 10px 8px 10px;border:2px solid #002c9a;background:#fff;box-shadow: 0 3px 10px 0 rgba(0,0,0,0.5);transform:translateX(-50%);border-radius:5px;top:34px;left:8px;} +.login2 .check_money .hover_content{display:none;position:absolute;padding:12px 12px 8px 12px;border:2px solid #002c9a;background:#fff;box-shadow: 0 3px 10px 0 rgba(0,0,0,0.5);transform:translateX(-50%);border-radius:5px;top:34px;left:8px;} .login2 .check_money .hover_content::after{content:'';position:absolute;left:50%;top:-10px;width:16px;height:10px;margin:0 0 0 -8px;background:url(../images/content/icon_account_arrow.png) no-repeat left top;} .login2 .check_money .hover_content .hover_content_title{font-size:14px;font-weight:600;margin:0 0 10px 0;} .login2 .check_money .hover_content .hover_content_title span{padding:0;font-size:13px;font-weight:400;} @@ -142,7 +142,9 @@ caption, .label {position: absolute;width: 1px;height: 1px;margin: -1px;border: .login2 .check_money .hover_content .send_available_number li{display:flex;justify-content:space-between;font-size:13px;} .login2 .check_money .hover_content .title{min-width:70px;} .login2 .check_money .hover_content .number{text-align:right;padding:0;} -.login2 .check_money .hover_content .event_term{width:100%;padding:2px 0;margin:8px 0 0 0;background:#e5e5e5;font-size:13px;color:#444;text-align:center;border-radius:25px;} +.login2 .check_money .hover_content .event_term{display:flex;width:100%;padding:4px 5px 4px 7px;margin:8px 0 0 0;background:#FFE5E5;font-size:13px;color:#e40000;text-align:center;border-radius:25px;justify-content:space-between;box-sizing:border-box;} +.login2 .check_money .hover_content .event_term p:last-child{color:#222;} +.login2 .check_money .hover_content .event_term p:last-child span{color:#e40000;} /*후불 회원에게만 노출되는 안내레이어*/ .login2 .check_money .holdingsum_box {position: relative; display:flex; align-items: center;} diff --git a/src/main/webapp/publish/css/popupLayer.css b/src/main/webapp/publish/css/popupLayer.css index 01345959..8bd79e24 100644 --- a/src/main/webapp/publish/css/popupLayer.css +++ b/src/main/webapp/publish/css/popupLayer.css @@ -1050,6 +1050,8 @@ .template_choice_popup .kakao_template_list{display:flex;flex-wrap:wrap;gap:30px 16px;margin:20px 0;} /* .template_choice_popup .kakao_template_list li{position: relative; display: inline-block; width: calc((100% - 80px)/3); border-radius: 25px; box-shadow: inset 0 0px 8px rgba(0,0,0,0.2); padding: 8px 8px 16px 8px; margin: 0 11px 40px 0;} */ .template_choice_popup .kakao_template_list li{position: relative; display: inline-block; width: calc((100% - 80px)/3); border-radius: 25px; box-shadow: inset 0 0px 8px rgba(0,0,0,0.2); padding: 8px 8px 16px 8px;} +.template_choice_popup .kakao_template_list li.template_none{width:100%;text-align:center;box-shadow:none;} +.template_choice_popup .kakao_template_list li.template_none::after{display:none;} .template_choice_popup .kakao_template_list li:nth-child(3n){margin: 0 0 0 0;} .template_choice_popup .kakao_template_list li::after{position: absolute; content: " "; width: 100%; height: 18px; background: url(/publish/images/kakao_template_cont.png) no-repeat top center; top: 8px;} .template_choice_popup .kakao_template_list .kakao_template_wrap{width: 100%; height: 370px; padding: 30px 0 15px 0; border-radius: 22px 22px 0 0; box-shadow: inset 0 2px 8px rgba(0,0,0,0.2); background: #b6cddd; overflow-y: auto; box-sizing: border-box;} diff --git a/src/main/webapp/publish/kakao_friendtalk_send.html b/src/main/webapp/publish/kakao_friendtalk_send.html index ab35c7fe..18350a07 100644 --- a/src/main/webapp/publish/kakao_friendtalk_send.html +++ b/src/main/webapp/publish/kakao_friendtalk_send.html @@ -786,6 +786,7 @@
+

무료거부 0808800858

0 / @@ -821,6 +822,7 @@

+

무료거부 0808800858

0 / @@ -878,6 +880,7 @@

+

무료거부 0808800858

0 / diff --git a/src/main/webapp/publish/layout/_header.html b/src/main/webapp/publish/layout/_header.html index 74325529..e51debd1 100644 --- a/src/main/webapp/publish/layout/_header.html +++ b/src/main/webapp/publish/layout/_header.html @@ -370,7 +370,7 @@

58원(345매)

-

이벤트 적용중 D-60

+

이벤트(D-60)

500,000.99

999,999,999.99원 diff --git a/src/main/webapp/publish/popup_friendtalk_template_choice.html b/src/main/webapp/publish/popup_friendtalk_template_choice.html index 23cb3cff..f62f6990 100644 --- a/src/main/webapp/publish/popup_friendtalk_template_choice.html +++ b/src/main/webapp/publish/popup_friendtalk_template_choice.html @@ -42,6 +42,7 @@
    +
  • 등록된 템플릿이 없습니다.