|
@@ -7,6 +7,7 @@ import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
import com.qmth.teachcloud.common.bean.auth.AuthBean;
|
|
import com.qmth.teachcloud.common.bean.auth.AuthBean;
|
|
import com.qmth.teachcloud.common.bean.result.LoginResult;
|
|
import com.qmth.teachcloud.common.bean.result.LoginResult;
|
|
|
|
+import com.qmth.teachcloud.common.cache.ThirdUserAuthCacheUtil;
|
|
import com.qmth.teachcloud.common.config.DictionaryConfig;
|
|
import com.qmth.teachcloud.common.config.DictionaryConfig;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.entity.*;
|
|
import com.qmth.teachcloud.common.entity.*;
|
|
@@ -152,6 +153,12 @@ public class SysController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (Objects.nonNull(ThirdUserAuthCacheUtil.getAuthRole(String.valueOf(sysUser.getId())))) {
|
|
|
|
+ commonCacheService.removeUserCache(sysUser.getId());
|
|
|
|
+ commonCacheService.removeUserAuthCache(sysUser.getId());
|
|
|
|
+ commonCacheService.removeUserMenuCache(sysUser.getId());
|
|
|
|
+ commonCacheService.removeUserRolePrivilegeCache(sysUser.getId());
|
|
|
|
+ }
|
|
return ResultUtil.ok(teachcloudCommonService.login(login.getPassword(), sysUser, AppSourceEnum.SYSTEM));
|
|
return ResultUtil.ok(teachcloudCommonService.login(login.getPassword(), sysUser, AppSourceEnum.SYSTEM));
|
|
}
|
|
}
|
|
|
|
|