diff --git a/src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp b/src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp index b069887a..7a14201b 100644 --- a/src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp @@ -195,9 +195,9 @@ Object - [data].msgGroupId - 메세지 그룹 ID - String + [data].msgGroupIdList + 메세지 그룹 ID 리스트 + List String [data].msgType @@ -242,8 +242,12 @@

"resultCode":"0"

, "data":[

-

"msgGroupId":"MSGGID_0000000000000"

-

, "msgType":"4"

+

"msgGroupIdList":[

+

    0:"MSGGID_0000000000000"

+

    1:"MSGGID_0000000000001"

+

    2:"MSGGID_0000000000002"

+

]

+

, "msgType":"LMS"

, "blockCnt":"0"

, "failCnt":"0"

, "successCnt":"3"

diff --git a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp index c6523259..8ed493ac 100644 --- a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp @@ -134,7 +134,7 @@
*api key - +
diff --git a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp index b125871f..b9df0fdb 100644 --- a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp @@ -24,19 +24,19 @@ //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //실제서비스용 - final String mberId = "goodgkdus"; //문자온 로그인 아이디 - final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key +// final String mberId = "goodgkdus"; //문자온 로그인 아이디 +// final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key //테스트용 - //String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디 - //String apiKey = request.getParameter("p_apiKey"); //발급받은 api key + String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디 + String apiKey = request.getParameter("p_apiKey"); //발급받은 api key /******************** 전송요청 URL ********************/ //final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail"; -// final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; + final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; - String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail"; +// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail"; /**************** 발송가능건수 예제 ******************/ System.out.println("상세발송이력"); diff --git a/src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp index 4cdfcdf8..201d5082 100644 --- a/src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp @@ -89,7 +89,7 @@
*api key - +
diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp index 57702e8d..ed43599a 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp @@ -152,7 +152,7 @@
*api key - +
diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp index d0fbc617..8cd30da6 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp @@ -42,8 +42,8 @@ //String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL //String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL -// final String apiUrl = "http://localhost:8088/api/api/send/sendMsg"; - final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg"; + final String apiUrl = "http://localhost:8088/api/send/sendMsg"; +// final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg"; Map params = new HashMap(); /******************** 인증정보 ********************/ diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp index 8b8cbe67..f28c8606 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp @@ -47,12 +47,14 @@ success: function (returnData, status) { + console.log('returnData : ', returnData); + if (returnData.resultCode=="0"){ - $("span#mgi").text(returnData.data.msgGroupId); + $("span#mgi").text(returnData.data.msgGroupIdList); $("span#sc").text(returnData.data.successCnt); $("span#fc").text(returnData.data.failCnt); $("span#bc").text(returnData.data.blockCnt); - $("span#mt").text(returnData.data.msgType); + $("span#mt").text(returnData.data.msgTypeList); } else{ alert(returnData.resultCode+" : "+returnData.data); @@ -130,7 +132,7 @@
*api key - +
diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp index bbc2bfc6..62b1b8c3 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp @@ -41,9 +41,9 @@ //String sms_url = "https://apis.aligo.in/send/"; // 전송요청 URL //String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL //String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL -// String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // 전송요청 URL + String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // 전송요청 URL - String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; // 전송요청 URL +// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; // 전송요청 URL Map params = new HashMap(); params.put("mberId", mberId); // SMS 아이디 @@ -72,6 +72,7 @@ //String p_msgKind = request.getParameter("p_msgKind"); //N-일반,A-광고,C-선거 //String p_msgKind = "N"; //N-일반,A-광고,C-선거 - 초기 지원안함 String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //SMS용 메시지본문 + String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS' //String p_nameStr_1 = request.getParameter("p_nameStr_1"); //치환문자 //선택값 @@ -88,6 +89,7 @@ //추가 전송 데이터 params.put("callFrom" , p_callFrom); //발신번호 + params.put("test_yn" , p_testYn); //테스트 여부 //params.put("callTo_1" , p_callTo_1); //수신번호 //params.put("eachPrice" , p_eachPrice); //전송문자 개별가격