(self)
| 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): |
no test coverage detected