只允许一个登录
This commit is contained in:
@@ -77,11 +77,11 @@ public class LoginService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String key = RedisCst.ONLINE_USER.concat(":").concat(loginReq.getClientType()).concat(":").concat(loginReq.getLoginName());
|
String key = RedisCst.ONLINE_USER.concat(":").concat(loginReq.getClientType()).concat(":").concat(loginReq.getLoginName());
|
||||||
//
|
|
||||||
// String data = redisUtil.getMessage(key);
|
String data = ""+redisUtil.get(key);
|
||||||
// if(ObjectUtil.isNotEmpty(data)){
|
if(ObjectUtil.isNotEmpty(data)){
|
||||||
// return Result.fail(CodeEnum.USERHAVEDLOGIN);
|
return Result.fail(CodeEnum.USERHAVEDLOGIN);
|
||||||
// }
|
}
|
||||||
|
|
||||||
TbmerchantAccount account = tbmerchantAccountMapper.selectByAccount(loginReq.getMerchantName());
|
TbmerchantAccount account = tbmerchantAccountMapper.selectByAccount(loginReq.getMerchantName());
|
||||||
if (ObjectUtil.isEmpty(account)) {
|
if (ObjectUtil.isEmpty(account)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user