修复虎牙宝典开通中状态与支付监听异常
This commit is contained in:
@@ -1214,6 +1214,7 @@ class HuyaWssClient:
|
||||
page_size: int = 10,
|
||||
order_type: int = 1,
|
||||
status: int = 0,
|
||||
timeout: float = 15.0,
|
||||
):
|
||||
from .shop_structs import QueryUserOrderListReq, QueryUserOrderListRsp
|
||||
|
||||
@@ -1229,7 +1230,7 @@ class HuyaWssClient:
|
||||
"queryUserOrderList",
|
||||
req,
|
||||
QueryUserOrderListRsp,
|
||||
timeout=15.0,
|
||||
timeout=timeout,
|
||||
)
|
||||
|
||||
async def order_detail(
|
||||
@@ -1240,6 +1241,7 @@ class HuyaWssClient:
|
||||
order_id: int,
|
||||
source_id: str = "yellowcarlist",
|
||||
app_scene: int = SHOP_APP_SCENE,
|
||||
timeout: float = 15.0,
|
||||
):
|
||||
"""按订单号查询商城订单详情,匹配 9.1 支付后轮询。"""
|
||||
from .shop_structs import OrderDetailReq, OrderDetailRsp
|
||||
@@ -1249,7 +1251,7 @@ class HuyaWssClient:
|
||||
req.shopAppInfo = self._build_shop_app(source_id, app_scene)
|
||||
req.orderId = int(order_id or 0)
|
||||
return await self.call_rpc(
|
||||
"shopMiddleUI", "orderDetailV5", req, OrderDetailRsp, timeout=15.0
|
||||
"shopMiddleUI", "orderDetailV5", req, OrderDetailRsp, timeout=timeout
|
||||
)
|
||||
|
||||
async def create_order(
|
||||
|
||||
Reference in New Issue
Block a user