| | |
| | | import com.ard.framework.manager.AsyncManager; |
| | | import com.ard.framework.manager.factory.AsyncFactory; |
| | | import com.ard.framework.security.context.AuthenticationContextHolder; |
| | | import com.ard.system.service.system.ISysConfigService; |
| | | import com.ard.system.service.system.ISysUserService; |
| | | import com.ard.system.service.ISysConfigService; |
| | | import com.ard.system.service.ISysUserService; |
| | | |
| | | /** |
| | | * 登录校验方法 |
| | | * |
| | | * @author ruoyi |
| | | * @author ard |
| | | */ |
| | | @Component |
| | | public class SysLoginService |
| | |
| | | if (!soloLogin) |
| | | { |
| | | // 如果用户不允许多终端同时登录,清除缓存信息 |
| | | String userIdKey = Constants.LOGIN_USERID_KEY + loginUser.getUser().getUserId(); |
| | | String userIdKey = CacheConstants.LOGIN_USERID_KEY + loginUser.getUser().getUserId(); |
| | | String userKey = redisCache.getCacheObject(userIdKey); |
| | | if (StringUtils.isNotEmpty(userKey)) |
| | | { |