Files
MusicServer/app/sdk/auth/__init__.py
T
snowy-yang dfc06bf4de feat(python): 完成 Python 全量迁移——剩余平台、登录通道与公共层修复
- 新增 5sing/apple/xm/me/qt/lr 平台包与取流实现(含 xm-sign、MissEvan 签名、蜻蜓 HMAC、Apple developer token)
- 新增 wy/kg/tx/lr 登录:扫码、手机号、账密(kg 20028 风控指纹)、cookie 绑定、kg/tx 续期
- request 层:保留多值 Set-Cookie;JSON body 紧凑化(修复 kg 网关验签);直连不经系统代理(对齐 Node)
- 登录路由统一 Body(embed=True),修复扫码轮询 422;lifespan 接入登录续期调度
- ruff/format/pyright 全绿;14 平台真实联网与 HTTP 路由验证通过
2026-10-23 21:55:45 +08:00

22 lines
788 B
Python
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.
"""账号登录模块(对应原 sdk/auth/ 与各平台 login/auth 文件)。
每个模块导出一组 async 函数,路由层只依赖这些签名:
wy:qr_key / qr_check / cellphone_login / login_by_cookie / status
kg:login_by_token / qr_key / qr_check / send_captcha / cellphone_login /
password_login / verify_user_info / status / refresh_login
tx:qr_show / qr_check / check_vip / refresh_login
lr:login / status
bili:create_qr_login / check_qr_login / status
约定:
* 成功直接返回 dict(由路由包装成 { code: 0, data })
* 可预期的业务失败抛 ApiError(401/422/502, msg)(路由原样转发状态码)
"""
from __future__ import annotations
__all__ = ["bili", "kg", "lr", "tx", "wy"]
from app.sdk.auth import bili, kg, lr, tx, wy