自动关闭虎牙支付成功弹窗
This commit is contained in:
@@ -469,6 +469,11 @@ class OrderListShopInfo(TafStruct):
|
||||
def write_to(self, os: TafOutputStream):
|
||||
pass
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
"shop_name": self.shopName,
|
||||
}
|
||||
|
||||
|
||||
class OrderListGoodsDetail(TafStruct):
|
||||
"""订单明细(queryUserOrderList 响应 tag16)"""
|
||||
@@ -494,6 +499,17 @@ class OrderListGoodsDetail(TafStruct):
|
||||
def write_to(self, os: TafOutputStream):
|
||||
pass
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
"spu_id": self.spuId,
|
||||
"sku_id": self.skuId,
|
||||
"buyer_uid": self.buyerUid,
|
||||
"virtual_type": self.virtualType,
|
||||
"quantity": self.quantity,
|
||||
"shop_info": self.shopInfo.to_dict() if self.shopInfo else None,
|
||||
"points": self.points,
|
||||
}
|
||||
|
||||
|
||||
class OrderListItem(TafStruct):
|
||||
"""订单列表项(queryUserOrderList 响应 tag3 的 list 元素)"""
|
||||
@@ -531,6 +547,23 @@ class OrderListItem(TafStruct):
|
||||
def write_to(self, os: TafOutputStream):
|
||||
pass
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
"biz_order_id": self.bizOrderId,
|
||||
"app_id": self.appId,
|
||||
"order_id": self.orderId,
|
||||
"pid": self.pid,
|
||||
"shop_name": self.shopName,
|
||||
"order_status": self.orderStatus,
|
||||
"item_name": self.itemName,
|
||||
"unit_price": self.unitPrice,
|
||||
"quantity": self.quantity,
|
||||
"total_price": self.totalPrice,
|
||||
"create_time": self.createTime,
|
||||
"pay_time": self.payTime,
|
||||
"goods_detail": self.goodsDetail.to_dict() if self.goodsDetail else None,
|
||||
}
|
||||
|
||||
|
||||
class QueryUserOrderListReq(TafStruct):
|
||||
"""查询购买历史订单 (revenueWebUI.queryUserOrderList)"""
|
||||
@@ -578,6 +611,14 @@ class QueryUserOrderListRsp(TafStruct):
|
||||
def write_to(self, os: TafOutputStream):
|
||||
pass
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
return {
|
||||
"code": self.code,
|
||||
"message": self.message,
|
||||
"total_count": self.totalCount,
|
||||
"orders": [item.to_dict() for item in self.orders],
|
||||
}
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 下单
|
||||
|
||||
Reference in New Issue
Block a user