Merge branch 'hylee'
This commit is contained in:
commit
af40937c8b
@ -585,6 +585,14 @@ public class ApiKeyMngController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
LoginVO loginVO = (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser();
|
||||||
|
// 기업회원 확인
|
||||||
|
System.out.println("loginVO.getDept() :: "+ loginVO.getDept());
|
||||||
|
if(!"c".equals(loginVO.getDept())) {
|
||||||
|
modelAndView.addObject("message", "기업회원만 api 신청이 가능합니다.");
|
||||||
|
modelAndView.addObject("result", "deptC");
|
||||||
|
return modelAndView;
|
||||||
|
|
||||||
|
}
|
||||||
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
|
||||||
System.out.println("1111111111112");
|
System.out.println("1111111111112");
|
||||||
ApiKeyVO apiKeyVO = new ApiKeyVO();
|
ApiKeyVO apiKeyVO = new ApiKeyVO();
|
||||||
|
|||||||
@ -690,11 +690,11 @@ function fnSelectMber(mberId) {
|
|||||||
-->
|
-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btnWrap">
|
<!-- <div class="btnWrap"> -->
|
||||||
|
|
||||||
<a href="javascript:fn_delete_real();">.</a>
|
<!-- <a href="javascript:fn_delete_real();">.</a> -->
|
||||||
|
|
||||||
</div>
|
<!-- </div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -8,6 +8,41 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function fn_reg_delete (p_accessNo){
|
||||||
|
|
||||||
|
|
||||||
|
if(confirm("신청을 취소하시겠습니까?")) {
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
//url: "/uss/umt/user/selectMberSttusAjax.do",
|
||||||
|
url: "/uss/ion/apikey/AdminAPIKEYDeleteRealAjax.do",
|
||||||
|
|
||||||
|
data: {
|
||||||
|
"accessNo" : p_accessNo
|
||||||
|
},
|
||||||
|
|
||||||
|
dataType:'json',
|
||||||
|
success: function (returnData, status) {
|
||||||
|
if(status == 'success'){
|
||||||
|
alert("취소 처리 완료 하였습니다.");
|
||||||
|
location.reload();
|
||||||
|
}else{
|
||||||
|
alert("취소 처리에 실패하였습니다.");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (e) {
|
||||||
|
alert("변경에 실패하였습니다.~2");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* API KEY 사용/미사용 처리 */
|
/* API KEY 사용/미사용 처리 */
|
||||||
function fn_delete(p_accessNo, p_useYn){
|
function fn_delete(p_accessNo, p_useYn){
|
||||||
//frm = document.writeForm;
|
//frm = document.writeForm;
|
||||||
@ -51,7 +86,8 @@ function fn_delete_real(p_accessNo){
|
|||||||
//frm = document.writeForm;
|
//frm = document.writeForm;
|
||||||
//var p_accessNo = frm.accessNo.value;
|
//var p_accessNo = frm.accessNo.value;
|
||||||
|
|
||||||
if(confirm("API신청 정보(API KEY, 발송서버 IP 데이터 모두 포함)를 삭제처리합니다.삭제후 복구 불가능합니다. 진행하시겠습니까?\n\n(임시 미사용시에는 API KEY 관리의 미사용처리 기능을 이용해주세요~)")) {
|
// if(confirm("API신청 정보(API KEY, 발송서버 IP 데이터 모두 포함)를 삭제처리합니다.삭제후 복구 불가능합니다. 진행하시겠습니까?\n\n(임시 미사용시에는 API KEY 관리의 미사용처리 기능을 이용해주세요~)")) {
|
||||||
|
if(confirm("API신청 정보를 삭제처리합니다.삭제후 복구 불가능합니다. 진행하시겠습니까?")) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
//url: "/uss/umt/user/selectMberSttusAjax.do",
|
//url: "/uss/umt/user/selectMberSttusAjax.do",
|
||||||
@ -210,9 +246,12 @@ function fn_reg_user_4_apikey(){
|
|||||||
}else if(returnData.result == 'fail'){
|
}else if(returnData.result == 'fail'){
|
||||||
alert("API KEY 사용자 등록을 실패하였습니다.(아이디 정상여부 확인해주세요)");
|
alert("API KEY 사용자 등록을 실패하였습니다.(아이디 정상여부 확인해주세요)");
|
||||||
//location.reload();
|
//location.reload();
|
||||||
|
}else if(returnData.result == 'deptC'){
|
||||||
|
alert(returnData.message);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alert("API KEY 사용자 등록을 실패하였습니다.(아이디 중복 확인해주세요)");
|
alert("API KEY 사용자 등록을 실패하였습니다.(아이디 중복 확인해주세요)");
|
||||||
location.reload();
|
location.href='<c:url value="/web/user/membershipChange.do" />';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (e) {
|
error: function (e) {
|
||||||
@ -241,7 +280,7 @@ function fn_reg_user_4_apikey(){
|
|||||||
<!-- 문자보내기 -->
|
<!-- 문자보내기 -->
|
||||||
<div class="top_content api_guide_cont current">
|
<div class="top_content api_guide_cont current">
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
<h2>신청/관리<c:out value="${apiVO.useYn }" /></h2>
|
<h2>신청/관리</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--신청/관리 내용-->
|
<!--신청/관리 내용-->
|
||||||
@ -272,9 +311,9 @@ function fn_reg_user_4_apikey(){
|
|||||||
<td>${apiVO.frstRegistPnttm}</td>
|
<td>${apiVO.frstRegistPnttm}</td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
<td>심사중</td>
|
<td>심사중</td>
|
||||||
<td><button type="button" class="btnType btnType23">신청 취소</button></td>
|
<td><button type="button" class="btnType btnType23" onclick="fn_reg_delete('${apiVO.accessNo}')">신청 취소</button></td>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${apiVO.useYn eq 'N' and apiVO.accessKey eq ''}"><!-- API 미승인 -->
|
<c:when test="${apiVO.useYn eq 'N' or apiVO.accessKey eq ''}"><!-- API 미승인 -->
|
||||||
<td>${apiVO.frstRegistPnttm}</td>
|
<td>${apiVO.frstRegistPnttm}</td>
|
||||||
<td>${apiVO.lastUpdtPnttm}</td>
|
<td>${apiVO.lastUpdtPnttm}</td>
|
||||||
<td>미승인</td>
|
<td>미승인</td>
|
||||||
@ -342,7 +381,7 @@ function fn_reg_user_4_apikey(){
|
|||||||
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('14'); return false;">재발급</button>
|
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('14'); return false;">재발급</button>
|
||||||
</td>
|
</td>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${apiVO.useYn eq 'N'}">
|
<%-- <c:when test="${apiVO.useYn eq 'N'}">
|
||||||
<td>
|
<td>
|
||||||
${apiVO.lastUpdtPnttm}
|
${apiVO.lastUpdtPnttm}
|
||||||
</td>
|
</td>
|
||||||
@ -356,7 +395,7 @@ function fn_reg_user_4_apikey(){
|
|||||||
<button type="button" class="btnType btnType23" onclick="fn_delete('${apiVO.accessNo}','Y'); return false;">사용처리</button>
|
<button type="button" class="btnType btnType23" onclick="fn_delete('${apiVO.accessNo}','Y'); return false;">사용처리</button>
|
||||||
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('${apiVO.accessNo}'); return false;">재발급</button>
|
<button type="button" class="btnType btnType14" onclick="fn_update_apikey('${apiVO.accessNo}'); return false;">재발급</button>
|
||||||
</td>
|
</td>
|
||||||
</c:when>
|
</c:when> --%>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<td colspan="4">API KEY 발급 내역이 없습니다.</td>
|
<td colspan="4">API KEY 발급 내역이 없습니다.</td>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
|
|||||||
@ -24,7 +24,7 @@ $(document).ready(function(){
|
|||||||
<div class="api_visual_image">
|
<div class="api_visual_image">
|
||||||
<img src="<c:url value='/publish/images/api_intro_cont/api_intro_visual.jpg' />" alt="문자 API도 이제 '문자온!'' 별도의 프로그램 설치 없이 누구나 쉽고 편리하게 문자를 발송할 수 있습니다." usemap="#image-map">
|
<img src="<c:url value='/publish/images/api_intro_cont/api_intro_visual.jpg' />" alt="문자 API도 이제 '문자온!'' 별도의 프로그램 설치 없이 누구나 쉽고 편리하게 문자를 발송할 수 있습니다." usemap="#image-map">
|
||||||
<map name="image-map">
|
<map name="image-map">
|
||||||
<area target="_self" alt="문자 API 신청하기" title="문자 API 신청하기" href="#" coords="88,214,291,268" shape="rect">
|
<area target="_self" alt="문자 API 신청하기" title="문자 API 신청하기" href="<c:out value='/web/api/appMgmt.do' />" coords="88,214,291,268" shape="rect">
|
||||||
</map>
|
</map>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ function usrDeptChk(){
|
|||||||
|
|
||||||
var usrDept = '${LoginVO.dept}';
|
var usrDept = '${LoginVO.dept}';
|
||||||
|
|
||||||
//카카오 알림톡 기업회원 전용체크
|
// 기업회원 전용체크
|
||||||
if(usrDept != 'c'){
|
if(usrDept != 'c'){
|
||||||
|
|
||||||
//기업회원 전용 메세지 팝업 띄워주기
|
//기업회원 전용 메세지 팝업 띄워주기
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user