MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / browse_mall

Function browse_mall

wxapp/BREO.py:313–330  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

311 time.sleep(1) # 避免频繁请求
312
313def browse_mall(token):
314 url = "https://breoplus.breo.cn/breo-app/user/po-task-info/mall"
315 headers = breo_task_headers(token)
316 try:
317 response = requests.post(url, headers=headers)
318 if response.status_code == 200:
319 result = response.json()
320 if result.get("success", False):
321 print("✅ 浏览商城成功!")
322 reward = result.get("result") or {}
323 print(f"获得点数: {reward.get('point', 0)}")
324 print(f"成长值: {reward.get('grow', 0)}")
325 else:
326 print(f"❌ 浏览商城失败,错误信息:{result.get('message', '未知错误')}")
327 else:
328 print(f"❌ 请求失败,状态码:{response.status_code}")
329 except Exception as e:
330 print(f"❌ 请求错误: {e}")
331
332def punch_in(token):
333 url = "https://breoplus.breo.cn/breo-app/user/po-task-info/punch"

Callers 1

BREO.pyFile · 0.85

Calls 4

breo_task_headersFunction · 0.85
printFunction · 0.50
postMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected