fix: fix bug
This commit is contained in:
parent
2d9d863efa
commit
fd5761cfe3
@ -63,14 +63,10 @@ public class AccountService implements UserDetailsService {
|
||||
throw new UsernameNotFoundException("用户名或密码错误");
|
||||
} else {
|
||||
if (authAccount.getAuth().equals("商户")){
|
||||
Long expire = redisTemplate.getExpire(String.valueOf(authAccount.getId()), TimeUnit.SECONDS);
|
||||
if (expire.longValue() == -1L || expire.longValue() == -2L){
|
||||
log.info("当前商户已过期");
|
||||
Verify verify = verifyMapper.selectOne(new LambdaQueryWrapper<Verify>().eq(Verify::getStoreId, authAccount.getId()));
|
||||
if (verify.getVerifyResult().equals("false")){
|
||||
log.info("无法登录,因为商户管理员已拒绝");
|
||||
return User.withUsername(authAccount.getUsername()).password("").build();
|
||||
}
|
||||
Verify verify = verifyMapper.selectOne(new LambdaQueryWrapper<Verify>().eq(Verify::getStoreId, authAccount.getId()));
|
||||
if (verify.getVerifyResult().equals("false")){
|
||||
log.info("无法登录,因为商户管理员已拒绝");
|
||||
return User.withUsername(authAccount.getUsername()).password("").build();
|
||||
}
|
||||
}
|
||||
return User
|
||||
|
Loading…
x
Reference in New Issue
Block a user