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

23 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 瀚信工时系统登录协议
type: experience
permalink: main/projects/6553b53c-bf14-49e3-a3de-1ee2f3533d51/瀚信工时系统登录协议
stable_id: ebfb0410-00e9-473f-aba0-524e48184051
scope: project
memory_type: experience
project_id: 6553b53c-bf14-49e3-a3de-1ee2f3533d51
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 2
request_id: hantele-login-protocol-20260831-002
created_at: '2026-08-31T04:06:03.690552+00:00'
updated_at: '2026-08-31T08:57:07.528861+00:00'
tags:
- 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”中保存。