(self)
| 175 | return False |
| 176 | |
| 177 | def runBattleTask(self): |
| 178 | for each in self.taskData: |
| 179 | if each['title'] == '分享商品': |
| 180 | if each['t_status'] == 0: |
| 181 | self.shareGoods(flag=1,count=2,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'] == '参与欢太超级宠粉': |
| 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 | elif each['title'] == '观看直播': |
| 194 | if each['t_status'] == 0: |
| 195 | self.runViewTask(dic=each) |
| 196 | elif each['t_status'] == 1: |
| 197 | self.receiveAward(each) |
| 198 | elif each['t_status'] == 2: |
| 199 | notify(f"[{each['title']}]\t任务完成") |
| 200 | elif each['title'] == '浏览真我Q3S' or each['title'] == '浏览真我Q3S': |
| 201 | if each['t_status'] == 0: |
| 202 | self.runViewTask(dic=each) |
| 203 | elif each['t_status'] == 1: |
| 204 | self.receiveAward(each) |
| 205 | elif each['t_status'] == 2: |
| 206 | notify(f"[{each['title']}]\t任务完成") |
| 207 | elif each['title'] == '浏览真我GT Neo2T' or each['title'] == '预约真我GT Neo2T': |
| 208 | if each['t_status'] == 0: |
| 209 | self.runViewTask(dic=each) |
| 210 | elif each['t_status'] == 1: |
| 211 | self.receiveAward(each) |
| 212 | elif each['t_status'] == 2: |
| 213 | notify(f"[{each['title']}]\t任务完成") |
| 214 | |
| 215 | # 执行欢太商城实例对象 |
| 216 | def start(self): |
no test coverage detected