MCPcopy
hub / github.com/linbailo/zyqinglong / receive_bucket_droplet

Method receive_bucket_droplet

得物森林.py:281–290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

279
280 # 领取木桶水滴,200秒满一次,每天领取3次
281 def receive_bucket_droplet(self):
282 url = 'https://app.dewu.com/hacking-tree/v1/droplet/get_generate_droplet'
283 response = self.session.post(url, headers=self.headers)
284 response_dict = response.json()
285 # myprint(response_dict)
286 if response_dict.get('code') != 200:
287 myprint(f"领取木桶水滴失败! {response_dict}")
288 return
289 myprint(
290 f"领取木桶水滴成功! 获得{response_dict.get('data').get('droplet')}g水滴")
291
292 # 判断木桶水滴是否可以领取
293 def judging_bucket_droplet(self):

Callers 1

Calls 3

myprintFunction · 0.85
postMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected