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

Method shareGoods

BattleForRealMe.py:107–126  ·  view source on GitHub ↗
(self,count=2,flag=None,dic=None)

Source from the content-addressed store, hash-verified

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'
109 headers = {
110 'clientPackage': 'com.oppo.store',
111 'Host': 'msec.opposhop.cn',
112 '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',
113 'Content-Type': 'application/x-www-form-urlencoded',
114 'Connection': 'keep-alive',
115 'User-Agent': 'okhttp/3.12.12.200sp1',
116 'Accept-Encoding': 'gzip',
117 }
118 params = {
119 'marking': 'daily_sharegoods'
120 }
121 for i in range(count + random.randint(1,3)):
122 self.sess.get(url=url,headers=headers,params=params)
123 notify(f"正在执行第{i+1}次微信分享...")
124 time.sleep(random.randint(7,10))
125 if flag == 1: #来源积分大乱斗
126 self.receiveAward(dic=dic)
127
128 # # 直播,宠粉,浏览商品
129 def runViewTask(self,dic=None):

Callers 1

runBattleTaskMethod · 0.95

Calls 2

receiveAwardMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected