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

Method runBattleTask

Backup/otherTask.py:177–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 time.sleep(random.randint(1,3))
176
177 def runBattleTask(self):
178 for each in self.taskData:
179 if each['title'] == '浏览一加 9RT':
180 if each['t_status'] == 0:
181 self.runViewTask(dic=each)
182 elif each['t_status'] == 1:
183 self.receiveAward(each)
184 elif each['t_status'] == 2:
185 notify(f"[{each['title']}]\t领取成功")
186 elif each['title'] == '浏览一加 Buds Z2':
187 if each['t_status'] == 0:
188 self.runViewTask(dic=each)
189 elif each['t_status'] == 1:
190 self.receiveAward(each)
191 elif each['t_status'] == 2:
192 notify(f"[{each['title']}]\t任务完成")
193
194 # 执行欢太商城实例对象
195 def start(self):

Callers 1

startMethod · 0.95

Calls 3

runViewTaskMethod · 0.95
receiveAwardMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected