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

Merge pull request !330 from 西东/dev
This commit is contained in:
刘潇
2025-04-18 03:34:36 +00:00
committed by Gitee

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