소스 검색

푸시관련, 개발중인 메뉴 숨김

junekeunsong 4 년 전
부모
커밋
1e45769ffc

+ 1 - 1
src/main/java/com/lemon/lifecenter/controller/MobileLoginController.java

@@ -115,7 +115,7 @@ public class MobileLoginController extends LifeCenterController {
         json.put("patientIdx", 1);
         
         logger.error( "[PATIENT LOGOUT] RemoteIP : " + remoteIp + " UserId : " + sesMId );
-        deviceService.deleteDeviceInfo(Integer.parseInt(sesMId));
+//        deviceService.deleteDeviceInfo(Integer.parseInt(sesMId));
         
         LifeCenterFunction.scriptMessage(response, "localStorage.clear();location.href='/mobile/login';");
         return "/common/blank";

+ 1 - 1
src/main/resources/logback-spring.xml

@@ -98,7 +98,7 @@
    </appender>
    <!-- root레벨 설정 -->
    <root level="${LOG_LEVEL}">
-      <appender-ref ref="CONSOLE" />
+<!--       <appender-ref ref="CONSOLE" /> -->
       <appender-ref ref="FILE_SAVE" />
       <appender-ref ref="Error" />
    </root>

+ 9 - 9
src/main/webapp/WEB-INF/jsp/include/sidebar.jsp

@@ -80,18 +80,18 @@
                         <a class="sidebar-link" href="/notice/list">공지사항</a>
                     </li>
                     <c:if test="${data._SES_ID eq 'user'}">
-                        <li class="sidebar-item <c:if test='${data._MENUPATH eq "qna"}'>active</c:if>">
-                            <a class="sidebar-link" href="/qna/list">의견 게시판</a>
-                        </li>
+<%--                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "qna"}'>active</c:if>"> --%>
+<!--                             <a class="sidebar-link" href="/qna/list">의견 게시판</a> -->
+<!--                         </li> -->
                     </c:if>
                     
                     <c:if test="${data._SES_ID eq 'user'}">
-                        <li class="sidebar-item <c:if test='${data._MENUPATH eq "push"}'>active</c:if>">
-                            <a class="sidebar-link" href="/push/list">푸시 서비스 관리</a>
-                        </li>
-                        <li class="sidebar-item <c:if test='${data._MENUPATH eq "apiManager"}'>active</c:if>">
-                            <a class="sidebar-link" href="/apiManager/list">API 서비스 관리</a>
-                        </li>
+<%--                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "push"}'>active</c:if>"> --%>
+<!--                             <a class="sidebar-link" href="/push/list">푸시 서비스 관리</a> -->
+<!--                         </li> -->
+<%--                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "apiManager"}'>active</c:if>"> --%>
+<!--                             <a class="sidebar-link" href="/apiManager/list">API 서비스 관리</a> -->
+<!--                         </li> -->
                         
 <%--                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "role"}'>active</c:if>"> --%>
 <!--                             <a class="sidebar-link" href="/role/list">그룹 권한 관리</a> -->

+ 43 - 43
src/main/webapp/WEB-INF/jsp/mobile/menu/menu.jsp

@@ -5,52 +5,52 @@
 <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
 <script type="text/javascript">
 
-$( function(){
-    token( "getToken" );
-});
+// $( function(){
+//     token( "getToken" );
+// });
 
-function getToken(token, deviceType, macAddress) {
-    var jsonMsg = {
-        patientIdx : "<c:out value='${patientIdx}' />",
-        deviceType : deviceType,
-        deviceToken : token,
-        macAddress : macAddress
-    };
+// function getToken(token, deviceType, macAddress) {
+//     var jsonMsg = {
+//         patientIdx : "<c:out value='${patientIdx}' />",
+//         deviceType : deviceType,
+//         deviceToken : token,
+//         macAddress : macAddress
+//     };
     
-    $.ajax({
-        url      : "/mobile/insertDeviceInfo",
-        data     : JSON.stringify(jsonMsg),
-        method   : "POST",
-        contentType: 'application/json',
-        success  : function( data ){
-            console.log(JSON.stringify(data));
-          if( typeof success == "function" ){
-            //success( data );
-          };
-        },
-        error : function(jqXHR, exception){
-          if( typeof error == "function" ) {
-            //error(jqXHR, exception);
-          };
-        }
-    }).done( function(){
-        if( typeof done == "function" ){
-          //done();
-        };
-    });
-}
+//     $.ajax({
+//         url      : "/mobile/insertDeviceInfo",
+//         data     : JSON.stringify(jsonMsg),
+//         method   : "POST",
+//         contentType: 'application/json',
+//         success  : function( data ){
+//             console.log(JSON.stringify(data));
+//           if( typeof success == "function" ){
+//             //success( data );
+//           };
+//         },
+//         error : function(jqXHR, exception){
+//           if( typeof error == "function" ) {
+//             //error(jqXHR, exception);
+//           };
+//         }
+//     }).done( function(){
+//         if( typeof done == "function" ){
+//           //done();
+//         };
+//     });
+// }
 
-function token(callback) {
-    console.log(callback);
-    var jsonMsg = {
-        "type":"command",
-        "functionType":"token",
-        "value" : {
-            "callbackFn" : callback
-        }
-    }
-    toNative(jsonMsg);
-}
+// function token(callback) {
+//     console.log(callback);
+//     var jsonMsg = {
+//         "type":"command",
+//         "functionType":"token",
+//         "value" : {
+//             "callbackFn" : callback
+//         }
+//     }
+//     toNative(jsonMsg);
+// }
 </script>
 </head>
 <body>