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

Method droplet_check_in

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

Source from the content-addressed store, hash-verified

195
196 # 水滴7天签到
197 def droplet_check_in(self):
198 url = 'https://app.dewu.com/hacking-tree/v1/sign/sign_in'
199 response = self.session.post(url, headers=self.headers)
200 response_dict = response.json()
201 # myprint(response_dict)
202 if response_dict.get('code') == 200:
203 # 暂时设置,看看礼盒是什么先
204 myprint(f"签到成功,获得{response_dict.get('data').get('Num')}g水滴")
205 return
206 myprint(f"签到失败! {response_dict.get('msg')}")
207
208 # 领取气泡水滴
209 def receive_droplet_extra(self):

Callers 1

mainMethod · 0.95

Calls 3

myprintFunction · 0.85
postMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected