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

Method receiveAward

Double11.py:121–144  ·  view source on GitHub ↗
(self,dic)

Source from the content-addressed store, hash-verified

119 self.receiveAward(dic)
120
121 def receiveAward(self,dic):
122 aid = 1768
123 url = 'https://hd.oppo.com/task/award'
124 headers = {
125 'Host': 'hd.oppo.com',
126 'Connection': 'keep-alive',
127 'Accept': '*/*',
128 'Origin': 'https://hd.oppo.com',
129 'X-Requested-With': 'XMLHttpRequest',
130 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
131 'Referer': 'https://hd.oppo.com/act/m/2021/jifenzhuanpan/index.html?us=gerenzhongxin&um=hudongleyuan&uc=yingjifen',
132 'Accept-Encoding': 'gzip, deflate',
133 'Accept-Language': 'zh-CN,en-US;q=0.9'
134 }
135 data = {
136 'aid': aid,
137 't_index': dic['t_index']
138 }
139 response = self.sess.post(url=url,headers=headers,data=data).json()
140 if response['no'] == '200':
141 notify(f"[{dic['title']}]\t{response['msg']}")
142 else:
143 notify(f"[{dic['title']}]\t{response['msg']}")
144 time.sleep(random.randint(1,3))
145
146 # def shareGoods(self,count=2,flag=None,dic=None):
147 # url = 'https://msec.opposhop.cn/users/vi/creditsTask/pushTask'

Callers 3

viewGoodsMethod · 0.95
runViewTaskMethod · 0.95
runBattleTaskMethod · 0.95

Calls 1

notifyFunction · 0.70

Tested by

no test coverage detected