旧 token 只有 sub 字段,新 token 有 userId/accountSequence。 用 payload.userId ?? payload.sub 兼容两种格式, 确保旧 token 心跳能正确写入在线状态。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| decorators | ||
| exceptions | ||
| filters | ||
| guards | ||
| interceptors | ||
| utils | ||
旧 token 只有 sub 字段,新 token 有 userId/accountSequence。 用 payload.userId ?? payload.sub 兼容两种格式, 确保旧 token 心跳能正确写入在线状态。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| decorators | ||
| exceptions | ||
| filters | ||
| guards | ||
| interceptors | ||
| utils | ||