mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
1.0.1更新,详细请查看文档
This commit is contained in:
@@ -204,6 +204,15 @@ public class StpLogic {
|
||||
if(login_id == null) {
|
||||
return default_value;
|
||||
}
|
||||
if(default_value instanceof Integer) {
|
||||
return (T)Integer.valueOf(login_id.toString());
|
||||
}
|
||||
if(default_value instanceof Long) {
|
||||
return (T)Long.valueOf(login_id.toString());
|
||||
}
|
||||
if(default_value instanceof String) {
|
||||
return (T)login_id.toString();
|
||||
}
|
||||
return (T)login_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user