dromara / dromara/Sa-Token

已登录账号,TerminalInfo 无法修改Extra ?

Open
#798 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19.1k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

### 使用版本:
1.43.0

### 报错信息:
StpKit.ACCOUNT.getSession().set("tenantId",100); ✅

Terminal 同样的操作 却没有变更

StpKit.ACCOUNT.getTerminalInfo().setExtra("tenantId",100); ❌

![Image](https://github.com/user-attachments/assets/527d1291-e472-4116-ba40-41e763340b06)

### 希望结果:

希望可以变更 TerminalInfo的 extra

### 复现步骤:

< 备注:如果复现步骤比较复杂,请将 demo 上传到 gitee 并留下地址 >

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two calls shown in the issue on Sa-Token 1.43.0, comparing getSession().set("tenantId", 100) with getTerminalInfo().setExtra("tenantId", 100). Trace TerminalInfo and setExtra to determine where the extra data is stored and whether the change is visible afterward. Done means TerminalInfo extra contains the updated tenantId.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.