MCPcopy Create free account
hub / github.com/Mashiro2000/HeyTapTask / login

Method login

BattleForRealMe.py:64–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62
63 # 登录验证
64 def login(self):
65 url = 'https://store.oppo.com/cn/oapi/users/web/member/check'
66 headers = {
67 'Host': 'store.oppo.com',
68 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
69 'Content-Type': 'application/x-www-form-urlencoded',
70 'Connection': 'keep-alive',
71 'Accept-Language': 'zh-cn',
72 'Accept-Encoding': 'gzip, deflate, br',
73 }
74 response = self.sess.get(url=url,headers=headers).json()
75 if response['code'] == 200:
76 notify(f"{self.dic['user']}\t登录成功")
77 return True
78 else:
79 notify(f"{self.dic['user']}\t登录失败")
80 return False
81
82 def receiveAward(self,dic):
83 aid = 1582

Callers 1

startMethod · 0.95

Calls 1

notifyFunction · 0.70

Tested by

no test coverage detected