mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
fixed: 后台数据权限bug
This commit is contained in:
@@ -28,9 +28,16 @@ public class BCtx {
|
||||
}
|
||||
|
||||
private static Object get(String key) {
|
||||
if (THREAD_LOCAL.get() == null) {
|
||||
return null;
|
||||
}
|
||||
return THREAD_LOCAL.get().getOrDefault(key, null);
|
||||
}
|
||||
|
||||
public static boolean isNull() {
|
||||
return THREAD_LOCAL.get() == null;
|
||||
}
|
||||
|
||||
public static void remove() {
|
||||
THREAD_LOCAL.remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user