이호영 이호영 2023-06-15
Merge branch 'hylee'
@0dbcbcc9f41d512c023de37afacdffaf1b80bd86
src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp
--- src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp
+++ src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp
@@ -195,9 +195,9 @@
 							<td>Object</td>
 						</tr>
 						<tr>
-							<th>[data].msgGroupId</th>
-							<td>메세지 그룹 ID</td>
-							<td>String</td>
+							<th>[data].msgGroupIdList</th>
+							<td>메세지 그룹 ID 리스트</td>
+							<td>List String</td>
 						</tr>
 						<tr>
 							<th>[data].msgType</th>
@@ -242,8 +242,12 @@
 											    <p>"resultCode":"0"</p>
 											    <p>, "data":[</p>
 											    <div>
-												    <p>"msgGroupId":"MSGGID_0000000000000"</p>
-												    <p>, "msgType":"4"</p>
+												    <p>"msgGroupIdList":[</p>
+												    <p>&nbsp;&nbsp;&nbsp; 0:"MSGGID_0000000000000"</p>
+												    <p>&nbsp;&nbsp;&nbsp; 1:"MSGGID_0000000000001"</p>
+												    <p>&nbsp;&nbsp;&nbsp; 2:"MSGGID_0000000000002"</p>
+												    <p>]</p>
+												    <p>, "msgType":"LMS"</p>
 												    <p>, "blockCnt":"0"</p>
 												    <p>, "failCnt":"0"</p>
 												    <p>, "successCnt":"3"</p>
src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_detail_form_r1.jsp
@@ -134,7 +134,7 @@
 					</div>
 					<div class="input_list_item">
 						<div class="input_left">*api key
-							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953"  size="100"/>
+							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820"  size="100"/>
 						</div>
 					</div>
 
src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
+++ 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("상세발송이력");
 	
src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
@@ -89,7 +89,7 @@
 					</div>
 					<div class="input_list_item">
 						<div class="input_left">*api key
-							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953"  size="100"/>
+							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820"  size="100"/>
 						</div>
 					</div>
 
src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_send_msg_form_r1.jsp
@@ -152,7 +152,7 @@
 					</div>
 					<div class="input_list_item">
 						<div class="input_left">*api key
-							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953"  size="100"/>
+							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820"  size="100"/>
 						</div>
 					</div>
 
src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp
+++ 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<String, String> params = new HashMap<String, String>();		
 		/******************** 인증정보 ********************/
src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msgs_form_r1.jsp
+++ 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 @@
 					</div>
 					<div class="input_list_item">
 						<div class="input_left">*api key
-							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953"  size="100"/>
+							<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820"  size="100"/>
 						</div>
 					</div>
 
src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
+++ 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<String, String> params = new HashMap<String, String>();		
 		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);		//전송문자 개별가격    
Add a comment
List