mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-02 03:47:50 +08:00
commit
45fcfc5e8e
@ -994,9 +994,12 @@ public class StpLogic {
|
||||
if(loginId == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
// 3、不为 null,则开始尝试类型转换
|
||||
return (T)SaFoxUtil.getValueByType(loginId, defaultValue.getClass());
|
||||
// 3、不为 null,则开始尝试类型转换
|
||||
if (defaultValue != null) {
|
||||
return (T) SaFoxUtil.getValueByType(loginId, defaultValue.getClass());
|
||||
} else {
|
||||
return (T) SaFoxUtil.getValueByType(loginId, Object.class);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user