mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-20 00:44:30 +08:00
fix: 修复 sa-token-sanck3 SaSessionForSnack3Customized:getModel 接收 map 值时会出错的问题
This commit is contained in:
parent
3658779d87
commit
4a8490c0c4
@ -68,8 +68,11 @@ public class SaSessionForSnack3Customized extends SaSession {
|
||||
if (value instanceof ONode) {
|
||||
ONode jo = (ONode) value;
|
||||
return jo.toObject(cs);
|
||||
} else if (value instanceof String) {
|
||||
return ONode.deserialize((String) value, cs);
|
||||
} else {
|
||||
return ONode.deserialize(value.toString(), cs);
|
||||
//有可能是 Map
|
||||
return ONode.load(value).toObject(cs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user