重构虎牙精英宝典协议与支付状态链路
This commit is contained in:
@@ -683,6 +683,26 @@ class HuyaWssClient:
|
||||
timeout=15.0,
|
||||
)
|
||||
|
||||
async def order_detail(
|
||||
self,
|
||||
uid: int,
|
||||
guid: str,
|
||||
cookie: str,
|
||||
order_id: int,
|
||||
source_id: str = "yellowcarlist",
|
||||
scene: int = WSS_SHOP_SCENE,
|
||||
):
|
||||
"""按订单号查询商城订单详情,匹配 9.1 支付后轮询。"""
|
||||
from .shop_structs import OrderDetailReq, OrderDetailRsp
|
||||
|
||||
req = OrderDetailReq()
|
||||
req.userId = self._build_biz_user(uid, cookie)
|
||||
req.shopAppInfo = self._build_shop_app(source_id, scene)
|
||||
req.orderId = int(order_id or 0)
|
||||
return await self.call_rpc(
|
||||
"shopMiddleUI", "orderDetailV5", req, OrderDetailRsp, timeout=15.0
|
||||
)
|
||||
|
||||
async def create_order(
|
||||
self,
|
||||
uid: int,
|
||||
|
||||
Reference in New Issue
Block a user