chore: 更新多端会话与订单筛选修复子模块,同步文档
This commit is contained in:
@@ -639,7 +639,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>鉴权</td>
|
||||
<td>token 单点在 user 服务,health 实时校验 + 进程内缓存</td>
|
||||
<td>token 多端会话在 user 服务(每端一条),health 实时校验 + 进程内缓存</td>
|
||||
<td>改造成本低;代价是登出/锁定在 health 侧最多延迟 5 分钟</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1427,9 +1427,9 @@ doc = findOneAndUpdate({ _id, status: <span class="s">"pending"</span> }, { $set
|
||||
<td>可接受;后续引入 JWT 短 access + refresh 可改善</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>单 token</td>
|
||||
<td>管理端登录会把 C 端踢下线</td>
|
||||
<td><code>user_session</code> 作为独立事项另行评估</td>
|
||||
<td>多端会话(每端一条,上限 10 条)</td>
|
||||
<td>同一账号可多端同时在线,登录互不踢;超出上限时最早的会话被淘汰</td>
|
||||
<td>已实现;如需按设备管理 / 强制下线,再引入 <code>user_session</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>限流、微信 access_token、WS Agent 缓存均为进程内存态</td>
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@
|
||||
| --- | --- | --- | --- | --- |
|
||||
| U1 | P4:停止写旧 `app`、删除字段、`strict: true` | `api/user/models/schema/user.js:74` 仍有 `app`,`:87` 仍为 `strict: false`;写入仍在双写 | P2 | multi-app P4 |
|
||||
| U2 | P5:下游完全切读 `apps` | health 侧 `permissions.js` 已优先读 `apps`,但仍保留旧 `app` 兜底;`web_tcm` 仍读 `app.tcm`(外部仓库) | P2 | multi-app P5 |
|
||||
| U3 | 多端登录互踢 | 仍为单 token,管理端登录会把 C 端踢下线;`user_session` 未建 | 明确延后 | multi-app §6.2 / §12.3 |
|
||||
| U3 | 多端登录互踢 | 已改为多端会话:`security.tokens` 每端一条 token 哈希(上限 10 条),登录互不覆盖;`token/tokenExpiry` 镜像最新会话兼容旧客户端 | 已完成 | multi-app §6.2 / §12.3 |
|
||||
| U4 | `unionid` 跨应用合并 | 依赖微信开放平台绑定后才有值;未绑定时退化为手机号 | 运营配置 | multi-app §10 |
|
||||
| U5 | 新应用 config 白名单 | `ttapp-escort` 等未配置 `APP_CONFIG_SCHEMAS`,写入会返回 400;接入前需补 | 接入前 | multi-app §6.7 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user