File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
app/src/main/resources/db/upgrade/app
cms/src/main/resources/db/upgrade/cms
core/src/main/java/com/jeesite/modules/sys/web Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 29295.11.1
30305.12.0
31315.12.1
32- 5.13.0
32+ 5.13.0
33+ 5.13.1
Original file line number Diff line number Diff line change 37375.11.1
38385.12.0
39395.12.1
40- 5.13.0
40+ 5.13.0
41+ 5.13.1
Original file line number Diff line number Diff line change @@ -157,14 +157,12 @@ public String kickOut(String sessionId) {
157157 onlineTickOutMap = MapUtils .newConcurrentMap ();
158158 }
159159 Object pc = session .getAttribute (DefaultSubjectContext .PRINCIPALS_SESSION_KEY );
160- if (pc != null && pc instanceof PrincipalCollection ){
160+ if (pc instanceof PrincipalCollection ){
161161 Object pp = ((PrincipalCollection )pc ).getPrimaryPrincipal ();
162- if (pp != null ) {
163- if (pp instanceof LoginInfo ){
164- LoginInfo loginInfo = ((LoginInfo )pp );
165- String key = loginInfo .getId ()+"_" +loginInfo .getParam ("deviceType" , "pc" );
166- onlineTickOutMap .put (key , StringUtils .EMPTY );
167- }
162+ if (pp instanceof LoginInfo ){
163+ LoginInfo loginInfo = ((LoginInfo )pp );
164+ String key = loginInfo .getId ()+"_" +loginInfo .getParam ("deviceType" , "pc" );
165+ onlineTickOutMap .put (key , StringUtils .EMPTY );
168166 }
169167 }
170168 SysCacheUtils .put ("onlineTickOutMap" , onlineTickOutMap );
You can’t perform that action at this time.
0 commit comments