feat(weibo): 增加协作 CK 批量复制与商品图片代理

This commit is contained in:
yml
2026-11-12 14:12:50 +08:00
parent 31045e0f2e
commit 0e29717c97
18 changed files with 604 additions and 153 deletions
+16 -1
View File
@@ -274,7 +274,20 @@ def test_mall_exchange_and_point_queries():
{
"code": 100000,
"data": {
"list": [{"id": 37, "goods_name": "会员1天卡", "price": 100}],
"list": [
{
"id": 37,
"goods_name": "会员1天卡",
"goods_image": "http://wx3.sinaimg.cn/large/demo.jpg",
"price": 100,
},
{
"id": 38,
"goods_name": "会员3天卡",
"goods_image": "//wx4.sinaimg.cn/large/demo-2.jpg",
"price": 200,
},
],
"weidou_balance": 100,
},
},
@@ -305,6 +318,8 @@ def test_mall_exchange_and_point_queries():
points = client.list_point_history("bowen_tjg")
assert mall["weidou_balance"] == 100
assert mall["list"][0]["goods_image"] == "https://wx3.sinaimg.cn/large/demo.jpg"
assert mall["list"][1]["goods_image"] == "https://wx4.sinaimg.cn/large/demo-2.jpg"
assert records["totalCount"] == 0
assert points["total"] == 1
assert session.calls[0][2]["params"]["F"] == "bowen_tjg"