This commit is contained in:
Your Name
2026-11-26 15:46:20 +08:00
parent db6d327e91
commit be79e09c83
170 changed files with 21159 additions and 13217 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ DOCTOR_VERIFY_SSL=true
程序会自动在地址末尾追加 `/adminapi`。它与现有管理端保持相同约定:
- 登录:`POST /login/account`,请求包含 `account`、`password`、`terminal=1`。
- 工作站使用 `POST /login/account` 登录,请求包含 `account`、`password` 和独立的 `terminal=21`。升级前保存的登录凭据需要重新登录一次。
- 工作站每 60 秒调用 `POST /login/desktopHeartbeat`。每次登录的有效期截至下一个北京时间 05:00,登录和心跳响应中的 `desktop_expires_at` 为 Unix 秒。退出账号或关闭应用时通过 `POST /login/logout` 结束会话。
- Web 后台的「桌面登录记录」支持按日期、账号或姓名调阅。跨北京时间零点的会话按实际重叠时段计入各日。断线超过心跳宽限时,退出时间按服务器最后确认在线的时间记录。
- 鉴权请求头:`token: <登录 token>`,`version: 1.9.4`。
- 响应 envelope:`code=1` 成功、`0` 业务失败、`-1` 登录失效、`10` 需绑定企业微信。
- 权限与数据范围:完全以后端 `/auth.admin/mySelf` 返回为准。