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

Method shareGoods

TaskCenter.py:225–244  ·  view source on GitHub ↗
(self, flag,count)

Source from the content-addressed store, hash-verified

223
224 # 分享商品
225 def shareGoods(self, flag,count):
226 url = 'https://msec.opposhop.cn/users/vi/creditsTask/pushTask'
227 headers = {
228 'clientPackage': 'com.oppo.store',
229 'Host': 'msec.opposhop.cn',
230 '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',
231 'Content-Type': 'application/x-www-form-urlencoded',
232 'Connection': 'keep-alive',
233 'User-Agent': 'okhttp/3.12.12.200sp1',
234 'Accept-Encoding': 'gzip',
235 }
236 params = {
237 'marking': 'daily_sharegoods'
238 }
239 for i in range(count + random.randint(1,3)):
240 self.sess.get(url=url,headers=headers,params=params)
241 notify(f"正在执行第{i+1}次微信分享...")
242 time.sleep(random.randint(7,10))
243 if flag == 1: # 来源任务中心
244 self.cashingCredits(self.shareData['name'],self.shareData['marking'], self.shareData['type'],self.shareData['credits'])
245
246
247 # # 浏览推送任务

Callers 1

runShareTaskMethod · 0.95

Calls 2

cashingCreditsMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected