|
|
@@ -50,7 +50,7 @@ public class UserLoginLogServiceImpl implements UserLoginLogService {
|
|
50
|
50
|
@Transactional(rollbackFor = Exception.class)
|
|
51
|
51
|
public void saveData(HttpServletRequest request, UserInfo userInfo, String loginType) {
|
|
52
|
52
|
// 查询是否登录成功
|
|
53
|
|
- if (!ObjectUtils.isEmpty(redisUtil.get(userInfo.getUsername() + CommonObject.sessionId))) {
|
|
|
53
|
+ if (redisUtil.hasKey(userInfo.getUsername() + CommonObject.sessionId)) {
|
|
54
|
54
|
UserLoginLog log = new UserLoginLog();
|
|
55
|
55
|
log.setId(UUID.randomUUID().toString());
|
|
56
|
56
|
log.setUserName(userInfo.getUsername());
|