修改cache缓存类型不匹配

master
zengwh 5 years ago
parent a935b85db5
commit 5d20861895

@ -97,11 +97,13 @@ public class CacheManager {
while (i.hasNext()) { while (i.hasNext()) {
Map.Entry<String,Object> entry = (Map.Entry) i.next(); Map.Entry<String,Object> entry = (Map.Entry) i.next();
Cache cache = CacheManager.getCacheInfo(entry.getKey()); Cache cache = CacheManager.getCacheInfo(entry.getKey());
if(null != cache.getValue() && cache.getValue() instanceof Power_UserVo){
Power_UserVo o = (Power_UserVo)cache.getValue(); Power_UserVo o = (Power_UserVo)cache.getValue();
if (obj.getUserName().equals(o.getUserName()) && !entry.getKey().equals(token)) { if (obj.getUserName().equals(o.getUserName()) && !entry.getKey().equals(token)) {
clearOnly(entry.getKey()); clearOnly(entry.getKey());
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

Loading…
Cancel
Save