修复虎牙宝典开通中状态与支付监听异常
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user