| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.bo.LoginResultBO; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.dto.LoginUserDTO; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.starter.web.util.WebThreadLocalUtil; |
| | | import com.vci.web.service.OsLoginServiceI; |
| | | import com.zeroc.IceInternal.Ex; |
| | | import eu.bitwalker.useragentutils.*; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | |
| | | @ResponseBody |
| | | public BaseResult logout(HttpServletRequest request){ |
| | | String userToken = request.getHeader(TokenKeyConstant.USER_TOKEN_KEY); |
| | | loginService.logout(userToken); |
| | | return BaseResult.success(); |
| | | try { |
| | | loginService.logout(userToken); |
| | | return BaseResult.success("退出成功"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | String errorLog = "登出时出现异常,原因:"+ VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorLog); |
| | | return BaseResult.fail(errorLog); |
| | | } |
| | | } |
| | | |
| | | } |