fix: 修复 sa-token-sanck3 SaSessionForSnack3Customized:getModel 接收 map 值时会出错的问题

This commit is contained in:
noear 2025-04-17 22:59:18 +08:00
parent 3658779d87
commit 4a8490c0c4

View File

@ -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);
}
}
}