完善虎牙外部单展示、状态恢复与礼包配置

This commit is contained in:
yml2213
2026-11-11 12:40:06 +08:00
parent 3a48d9c624
commit b18e46d72d
18 changed files with 1216 additions and 120 deletions
+11
View File
@@ -1351,6 +1351,9 @@ class HuyaHttpClient:
cookie: str,
source_id: str = "yellowcarlist",
page_code: str = "heping_baodian_credit_center_page",
scene: int = 7,
page_id: int = 0,
waterfall_tab_id: int | str | None = None,
timeout: float = 15.0,
*,
deep: bool = False,
@@ -1366,6 +1369,14 @@ class HuyaHttpClient:
req.userId = self._build_shop_user(uid, cookie)
req.pageCode = page_code
req.appInfo.sourceId = source_id
req.appInfo.scene = int(scene or 7)
if waterfall_tab_id not in (None, ""):
req.blank7 = json.dumps(
{"waterfallTabId": str(waterfall_tab_id)},
separators=(",", ":"),
)
req.flag9 = int(page_id or 0)
req.flags11 = []
resp = self.call_rpc(
"PlayMallUI",
"queryAllocation",