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

Method shareGoods

DailyCash.py:104–123  ·  view source on GitHub ↗
(self, flag,count,dic=None)

Source from the content-addressed store, hash-verified

102
103 # 分享商品
104 def shareGoods(self, flag,count,dic=None):
105 url = 'https://msec.opposhop.cn/users/vi/creditsTask/pushTask'
106 headers = {
107 'clientPackage': 'com.oppo.store',
108 'Host': 'msec.opposhop.cn',
109 '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',
110 'Content-Type': 'application/x-www-form-urlencoded',
111 'Connection': 'keep-alive',
112 'User-Agent': 'okhttp/3.12.12.200sp1',
113 'Accept-Encoding': 'gzip',
114 }
115 params = {
116 'marking': 'daily_sharegoods'
117 }
118 for i in range(count + random.randint(1,3)):
119 self.sess.get(url=url,headers=headers,params=params)
120 notify(f"正在执行第{i+1}次微信分享...")
121 time.sleep(random.randint(7,10))
122 if flag == 1: #来源天天赚钱
123 self.getCash(dic=dic)
124
125 # 秒杀详情页获取商品数据
126 def getGoodMess(self,count=10):

Callers 1

runTaskRewardListMethod · 0.95

Calls 2

getCashMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected