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

Method receiveAward

BattleForRealMe.py:82–105  ·  view source on GitHub ↗
(self,dic)

Source from the content-addressed store, hash-verified

80 return False
81
82 def receiveAward(self,dic):
83 aid = 1582
84 url = 'https://hd.oppo.com/task/award'
85 headers = {
86 'Host': 'hd.oppo.com',
87 'Connection': 'keep-alive',
88 'Accept': '*/*',
89 'Origin': 'https://hd.oppo.com',
90 'X-Requested-With': 'XMLHttpRequest',
91 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
92 'Referer': 'https://hd.oppo.com/act/m/2021/jifenzhuanpan/index.html?us=gerenzhongxin&um=hudongleyuan&uc=yingjifen',
93 'Accept-Encoding': 'gzip, deflate',
94 'Accept-Language': 'zh-CN,en-US;q=0.9'
95 }
96 data = {
97 'aid': aid,
98 't_index': dic['t_index']
99 }
100 response = self.sess.post(url=url,headers=headers,data=data).json()
101 if response['no'] == '200':
102 notify(f"[{dic['title']}]\t{response['msg']}")
103 else:
104 notify(f"[{dic['title']}]\t{response['msg']}")
105 time.sleep(random.randint(1,3))
106
107 def shareGoods(self,count=2,flag=None,dic=None):
108 url = 'https://msec.opposhop.cn/users/vi/creditsTask/pushTask'

Callers 3

shareGoodsMethod · 0.95
runViewTaskMethod · 0.95
runBattleTaskMethod · 0.95

Calls 1

notifyFunction · 0.70

Tested by

no test coverage detected