1.5 KiB
1.5 KiB
title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
| title | type | permalink | stable_id | scope | memory_type | project_id | usage_profile_id | status | revision | request_id | created_at | updated_at | tags | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 瀚信工时系统登录协议 | experience | main/projects/6553b53c-bf14-49e3-a3de-1ee2f3533d51/瀚信工时系统登录协议 | ebfb0410-00e9-473f-aba0-524e48184051 | project | experience | 6553b53c-bf14-49e3-a3de-1ee2f3533d51 | 7aee455b-24cc-4008-bdaf-443721e6f939 | active | 2 | hantele-login-protocol-20260831-002 | 2026-08-31T04:06:03.690552+00:00 | 2026-08-31T08:57:07.528861+00:00 |
|
已通过 Chrome 与 Python CLI 实际登录验证。验证码:GET /wts/code/{randomStr},randomStr = 4位随机数字 + Date.now() 毫秒时间戳。密码字段仅做浏览器 btoa/Base64 编码,不是 AES。登录:POST /wts/oauth/token,参数通过 query string 传输:username、password、randomStr、code、grant_type=password、scope=server;请求头 Authorization: Basic cGlnOnBpZw==。成功响应至少包含 access_token、refresh_token;后续请求使用 Authorization: Bearer {access_token}。用户信息接口 GET /wts/user/info。项目已实现 hantele_login.py:requests.Session 复用、ddddocr 四字符识别、验证码错误最多重试、Token 默认不输出、用户信息默认脱敏。Python 3.12 .venv 下 4 项单测通过,真实登录两次成功且 OCR 均首轮通过。凭据只在密码库条目“瀚信工时管理系统 183.6.190.76:26007”中保存。