From 9c5b811fb700bc66e66dbf38ed8733e57a4edac6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期三, 09 三月 2022 09:19:14 +0800
Subject: [PATCH] Merge branch 'hemenkou_dev' into dev
---
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbServiceTeamServiceImpl.java | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbServiceTeamServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbServiceTeamServiceImpl.java
index 5a061e1..9976536 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbServiceTeamServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbServiceTeamServiceImpl.java
@@ -1,16 +1,13 @@
package com.panzhihua.service_dangjian.service.impl;
+import static java.util.Objects.nonNull;
+
import java.util.List;
import javax.annotation.Resource;
-import com.alibaba.fastjson.JSONObject;
-import com.panzhihua.common.constants.SecurityConstants;
-import com.panzhihua.common.constants.TokenConstant;
-import com.panzhihua.common.model.vos.LoginUserInfoVO;
import org.springframework.beans.BeanUtils;
import org.springframework.data.redis.core.StringRedisTemplate;
-import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
@@ -28,8 +25,6 @@
import com.panzhihua.service_dangjian.service.ComPbServiceTeamService;
import lombok.extern.slf4j.Slf4j;
-
-import static java.util.Objects.nonNull;
/**
* @program: springcloud_k8s_panzhihuazhihuishequ
@@ -67,16 +62,7 @@
if (insert > 0) {
if (nonNull(userId)) {
String userKey = UserConstants.LOGIN_USER_INFO + userId;
- Boolean hasKeyLoginUserInfo = stringRedisTemplate.hasKey(userKey);
- if (hasKeyLoginUserInfo) {
- ValueOperations<String, String> valueOperations = stringRedisTemplate.opsForValue();
- String userInfo = valueOperations.get(userKey);
- LoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(userInfo, LoginUserInfoVO.class);
- loginUserInfoVO.setIsmemberrole(1);
- loginUserInfoVO.setIsCommunityWorker(1);
- userInfo = JSONObject.toJSONString(loginUserInfoVO);
- valueOperations.set(userKey, userInfo, TokenConstant.EXPIRETIME_REFRESH * 60 * 60 * 1000);
- }
+ stringRedisTemplate.delete(userKey);
}
return R.ok();
}
--
Gitblit v1.7.1