修复虎牙宝典开通中状态与支付监听异常

This commit is contained in:
yml2213
2026-11-11 12:51:06 +08:00
parent b18e46d72d
commit 26809dd116
6 changed files with 282 additions and 19 deletions
+41
View File
@@ -253,6 +253,47 @@ def test_pay_order_submit_v5_callback_points_page():
asyncio.run(run())
def test_order_poll_rpcs_accept_timeout_keyword():
"""支付监听统一传 timeout;WSS 方法缺这个参数会在生成二维码后立刻崩。"""
async def run():
client = _points_client()
await client.query_user_order_list(
uid=UID,
guid=GUID,
cookie=COOKIE,
offset=0,
page_size=20,
order_type=1,
status=0,
timeout=10.0,
)
decoded = client.ws.last_request()
assert (decoded["servant"], decoded["func"]) == (
"revenueWebUI",
"queryUserOrderList",
)
assert decoded["tReq"]["tag2"] == 1
assert decoded["tReq"]["tag3"] == 20
await client.order_detail(
uid=UID,
guid=GUID,
cookie=COOKIE,
order_id=12001621,
timeout=10.0,
)
decoded = client.ws.last_request()
assert (decoded["servant"], decoded["func"]) == (
"shopMiddleUI",
"orderDetailV5",
)
assert decoded["tReq"]["tag2"] == 12001621
asyncio.run(run())
def test_new_points_rpcs_match_capture():
async def run():
client = _points_client()