整理虎牙文档并接入设备画像指纹

This commit is contained in:
yml2213
2026-09-02 13:42:32 +08:00
parent 2a1b1e642c
commit c62c025ced
11 changed files with 410 additions and 41 deletions
+7 -1
View File
@@ -839,9 +839,15 @@ class HuyaAppPasswordLogin:
# (App 渠道),缺字段注入浏览器会导致 UDB SDK 判定设备态不完整。
from .web_cookie_fields import (
fill_web_cookie_fields,
qimei_feature_from_device_profile,
)
full_cookie = fill_web_cookie_fields(cookie_str, guid="", uid=uid)
full_cookie = fill_web_cookie_fields(
cookie_str,
guid="",
uid=uid,
qimei_feature=qimei_feature_from_device_profile(self.device_info),
)
appid_fixed = "; ".join(
f"{key}={value}" if key != "udb_appid" else "udb_appid=5002"
for key, value in cookie_pairs(full_cookie)