feat: 黄豆登录后自动签到领积分

This commit is contained in:
Nixevol
2026-10-25 06:08:44 +08:00
parent 2286bc597d
commit fd9b155518
4 changed files with 84 additions and 2 deletions
+10
View File
@@ -73,6 +73,16 @@ def login_username(username: str, password: str, channel_code: str = "") -> dict
return data
def user_sign() -> dict:
data = client.request("/user/sign", {}, auth=True, identity="account")
return data if isinstance(data, dict) else {}
def user_do_sign() -> dict:
data = client.request("/user/doSign", {}, auth=True, identity="account")
return data if isinstance(data, dict) else {}
def user_info(*, identity: str = "guest") -> dict:
data = client.request("/user/info", {}, auth=True, identity=identity)
if not isinstance(data, dict):