Files
MemRelay/projects/6553b53c-bf14-49e3-a3de-1ee2f3533d51/瀚信工时系统登录协议.md
T

1.4 KiB
Raw Blame History

title, type, permalink, stable_id, scope, project_id, memory_type, status, revision, restored_from_commit, created_at, updated_at, tags
title type permalink stable_id scope project_id memory_type status revision restored_from_commit created_at updated_at tags
瀚信工时系统登录协议 experience main/projects/6553b53c-bf14-49e3-a3de-1ee2f3533d51/瀚信工时系统登录协议 ebfb0410-00e9-473f-aba0-524e48184051 project 6553b53c-bf14-49e3-a3de-1ee2f3533d51 experience active 1 6a6a895eaf 2026-09-23T14:57:04.555236+00:00 2026-09-23T14:57:04.555296+00:00
login
oauth
captcha
automation
implemented

已通过 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”中保存。