|
|
@ -10,6 +10,7 @@ import org.springframework.cache.annotation.Cacheable;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import ${basePackage}.config.CacheConfig;
|
|
|
|
import ${basePackage}.config.CacheConfig;
|
|
|
|
|
|
|
|
import ${basePackage}.frame.auth.LocalData;
|
|
|
|
import ${basePackage}.frame.base.ErrorType;
|
|
|
|
import ${basePackage}.frame.base.ErrorType;
|
|
|
|
import ${basePackage}.frame.base.Token;
|
|
|
|
import ${basePackage}.frame.base.Token;
|
|
|
|
import ${basePackage}.frame.utils.IDgenerator;
|
|
|
|
import ${basePackage}.frame.utils.IDgenerator;
|
|
|
@ -277,6 +278,11 @@ public class TokensManagerImpl implements xyz.wbsite.module.system.mgr.TokensMan
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (request.getToken().equals(LocalData.getToken().getToken())) {
|
|
|
|
|
|
|
|
response.addError(ErrorType.BUSINESS_ERROR, "无法注销当前登录用户!");
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TokensFindRequest tokensFindRequest = MapperUtil.map(request, TokensFindRequest.class);
|
|
|
|
TokensFindRequest tokensFindRequest = MapperUtil.map(request, TokensFindRequest.class);
|
|
|
|
tokensFindRequest.setValid(true);
|
|
|
|
tokensFindRequest.setValid(true);
|
|
|
|
TokensFindResponse tokensFindResponse = this.find(tokensFindRequest, token);
|
|
|
|
TokensFindResponse tokensFindResponse = this.find(tokensFindRequest, token);
|
|
|
|