只允许一个登录
This commit is contained in:
parent
0a0d009b2c
commit
a7206b4506
|
|
@ -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)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue