mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 12:26:51 +08:00
提交修改
This commit is contained in:
@@ -209,7 +209,7 @@ public class PortalLoginApi extends ApiBaseController {
|
|||||||
//检查系统用户是否存在
|
//检查系统用户是否存在
|
||||||
account = accountService.get(tokenInfo.get("aid"));
|
account = accountService.get(tokenInfo.get("aid"));
|
||||||
}else{
|
}else{
|
||||||
log.error("查询用户kid【"+tokenInfo.get("userId")+"】");
|
//log.error("查询用户kid【"+tokenInfo.get("userId")+"】");
|
||||||
// 没有aid则判断是否已同步的用户,不是则同步
|
// 没有aid则判断是否已同步的用户,不是则同步
|
||||||
if(StringUtil.isNotBlank(tokenInfo.get("userId"))){
|
if(StringUtil.isNotBlank(tokenInfo.get("userId"))){
|
||||||
account = accountService.findLoginBySysId(tokenInfo.get("userId"));
|
account = accountService.findLoginBySysId(tokenInfo.get("userId"));
|
||||||
@@ -240,6 +240,9 @@ public class PortalLoginApi extends ApiBaseController {
|
|||||||
return error("未找到的用户信息");
|
return error("未找到的用户信息");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//在这种情况下情况下,应该重置 一下缓存,以便对用户进行缓存更新
|
||||||
|
//String cacheKey=CacheName.NAME_USER+ CacheName.KEY_USER_SYSID +account.getId();
|
||||||
|
|
||||||
// if (account.getStatus() == Constants.ACCOUNT_STATUS_DEACTIVATE) {
|
// if (account.getStatus() == Constants.ACCOUNT_STATUS_DEACTIVATE) {
|
||||||
// return error("账号已停用");
|
// return error("账号已停用");
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user