取消 SaSessionForJson (发现没必要了)

This commit is contained in:
noear 2024-05-11 17:55:27 +08:00
parent 1a62c391ea
commit 81709bcef8
4 changed files with 6 additions and 3 deletions

View File

@ -19,12 +19,14 @@ import cn.dev33.satoken.session.SaSession;
import cn.dev33.satoken.util.SaFoxUtil;
import org.noear.snack.ONode;
//todo: 不能删为保持与旧的序列化兼容
/**
* Snack3 定制版 SaSession重写类型转换API
*
* @author noear
* @since 1.34.0
*/
@Deprecated
public class SaSessionForJson extends SaSession {
private static final long serialVersionUID = -7600983549653130681L;

View File

@ -44,7 +44,7 @@ public class SaTokenDaoOfRedisJson implements SaTokenDao {
redisBucket = redisClient.getBucket();
// 重写 SaSession 生成策略
SaStrategy.instance.createSession = (sessionId) -> new SaSessionForJson(sessionId);
//SaStrategy.instance.createSession = (sessionId) -> new SaSessionForJson(sessionId);
}

View File

@ -19,12 +19,14 @@ import cn.dev33.satoken.session.SaSession;
import cn.dev33.satoken.util.SaFoxUtil;
import org.noear.snack.ONode;
//todo: 不能删为保持与旧的序列化兼容
/**
* Snack3 定制版 SaSession重写类型转换API
*
* @author noear
* @since 1.12
*/
@Deprecated
public class SaSessionForJson extends SaSession {
private static final long serialVersionUID = -7600983549653130681L;

View File

@ -45,8 +45,7 @@ public class SaTokenDaoOfRedisJson implements SaTokenDao {
redisBucket = redisClient.getBucket();
// 重写 SaSession 生成策略
SaStrategy.instance.createSession = (sessionId) -> new SaSessionForJson(sessionId);
//SaStrategy.instance.createSession = (sessionId) -> new SaSessionForJson(sessionId);
}