| | |
| | | |
| | | /** |
| | | * 退出登录 |
| | | * |
| | | * 清除用户session |
| | | * @param userToken 用户的会话许可 |
| | | */ |
| | | @Override |
| | | public void logout(String userToken) { |
| | | WebUtil.alertNotNull(userToken,"用户许可"); |
| | | try{ |
| | | platformClientUtil.getBOFactoryService().executeUpdateSql("delete from VCI_SESSIONINFO where TOKEN ='" + userToken.trim() + "'"); |
| | | }catch (PLException e){ |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | | public void logout(String userToken,String userId) throws PLException { |
| | | //TODO 根据情况,单独处理 |
| | | redisService.deleteObject(CacheNameConstant.USERID_TOKEN_KEY + userId); |
| | | redisService.deleteObject(TokenKeyConstant.TOKEN_KEY_PREFIX_IN_REDIS + userToken); |
| | | platformClientUtil.getFrameworkService().logoff(userToken); |
| | | } |
| | | |
| | | /** |