Commit f29df899 authored by xuepeng.chang's avatar xuepeng.chang

登出 删除token

parent a8221d51
...@@ -207,14 +207,14 @@ public class AppletServiceImpl implements IAppletService { ...@@ -207,14 +207,14 @@ public class AppletServiceImpl implements IAppletService {
wechatBindLogRepository.save(wechatBindLog); wechatBindLogRepository.save(wechatBindLog);
} }
// 删除微信关联记录后,清除微信渠道的登陆token // 删除微信关联记录后,清除微信渠道的登陆token
// if(org.apache.commons.lang3.StringUtils.isNotEmpty(unbindParam.getWechatChannelId())){ if(org.apache.commons.lang3.StringUtils.isNotEmpty(unbindParam.getWechatChannelId())){
// List<String> wechatChannelIds = Arrays.stream(unbindParam.getWechatChannelId().split(",")).collect(Collectors.toList()); List<String> wechatChannelIds = Arrays.stream(unbindParam.getWechatChannelId().split(",")).collect(Collectors.toList());
// for (String wechatChannelId : wechatChannelIds) { for (String wechatChannelId : wechatChannelIds) {
// LoginProperties loginProperties = new LoginProperties(1, Long.valueOf(wechatChannelId), unbindParam.getTenantId()); LoginProperties loginProperties = new LoginProperties(1, Long.valueOf(wechatChannelId), unbindParam.getTenantId());
// sessionService.deleteWechatSession(unbindParam.getUserId(),loginProperties,unbindParam.getTenantId()); sessionService.deleteWechatSession(unbindParam.getUserId(),loginProperties,unbindParam.getTenantId());
// log.info("微信解绑成功,清除微信的登陆token,userId:{},wechatChannelId:{}", unbindParam.getUserId(),wechatChannelId); log.info("微信解绑成功,清除微信的登陆token,userId:{},wechatChannelId:{}", unbindParam.getUserId(),wechatChannelId);
// } }
// } }
User user = userService.findById(unbindParam.getUserId(), unbindParam.getTenantId()); User user = userService.findById(unbindParam.getUserId(), unbindParam.getTenantId());
// 老的微信登录的时候用的是下边的方式,删除的时候也只能这么删 // 老的微信登录的时候用的是下边的方式,删除的时候也只能这么删
LoginProperties loginProperties = LoginProperties.builder() LoginProperties loginProperties = LoginProperties.builder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment