接入虎牙精英宝典最新商城前置流程
This commit is contained in:
@@ -851,6 +851,52 @@ class HuyaHttpClient:
|
||||
"shopMiddleUI", "getGoodsInfoV5", req, GoodsInfoRsp, uid, guid, cookie
|
||||
)
|
||||
|
||||
def list_pay_channels(
|
||||
self, uid: int, guid: str, cookie: str, spu_id: str, sku_id: int,
|
||||
supplier_id: int = 87401, timeout: float = 15.0,
|
||||
):
|
||||
from .shop_structs import ListPayChannelReq, ListPayChannelRsp
|
||||
|
||||
req = ListPayChannelReq()
|
||||
req.userId = self._build_shop_user(uid, cookie)
|
||||
req.shopAppInfo = self._build_shop_app("yellowcarlist", 4)
|
||||
req.supplierId = int(supplier_id or 0)
|
||||
req.spuId = spu_id
|
||||
req.skuId = int(sku_id or 0)
|
||||
return self.call_rpc(
|
||||
"shopMiddleUI", "listPayChannelV5", req, ListPayChannelRsp,
|
||||
uid, guid, cookie, timeout=timeout,
|
||||
)
|
||||
|
||||
def check_hy_protocol(
|
||||
self, uid: int, guid: str, cookie: str, timeout: float = 15.0
|
||||
):
|
||||
from .shop_structs import CheckHyProtocolReq, ShopCodeRsp
|
||||
|
||||
req = CheckHyProtocolReq()
|
||||
req.userId = self._build_shop_user(uid, cookie)
|
||||
req.shopAppInfo = self._build_shop_app("yellowcarlist", 4)
|
||||
return self.call_rpc(
|
||||
"shopMiddleUI", "checkHyProtocolV5", req, ShopCodeRsp,
|
||||
uid, guid, cookie, timeout=timeout,
|
||||
)
|
||||
|
||||
def check_user_buy_auth(
|
||||
self, uid: int, guid: str, cookie: str, spu_id: str, sku_id: int,
|
||||
timeout: float = 15.0,
|
||||
):
|
||||
from .shop_structs import CheckUserBuyAuthReq, ShopCodeRsp
|
||||
|
||||
req = CheckUserBuyAuthReq()
|
||||
req.userId = self._build_shop_user(uid, cookie)
|
||||
req.shopAppInfo = self._build_shop_app("yellowcarlist", 4)
|
||||
req.spuId = spu_id
|
||||
req.skuId = int(sku_id or 0)
|
||||
return self.call_rpc(
|
||||
"shopMiddleUI", "checkUserBuyAuth", req, ShopCodeRsp,
|
||||
uid, guid, cookie, timeout=timeout,
|
||||
)
|
||||
|
||||
def query_user_order_list(
|
||||
self,
|
||||
uid,
|
||||
|
||||
Reference in New Issue
Block a user