(self)
| 221 | |
| 222 | |
| 223 | def runTaskRewardList(self): |
| 224 | for each in self.taskRewardList: |
| 225 | if each['taskName'] == '浏览商品': |
| 226 | if each['taskStatus'] == 0: |
| 227 | self.viewGoods(count=6,flag=1,dic=each) |
| 228 | elif each['taskStatus'] == 1: |
| 229 | self.getCash(dic=each) |
| 230 | elif each['taskStatus'] == 2: |
| 231 | notify(f"{each['taskName']}\t已领取") |
| 232 | elif each['taskName'] == '浏览秒杀专区': |
| 233 | if each['taskStatus'] == 0: |
| 234 | self.viewCashTask(each) |
| 235 | elif each['taskStatus'] == 1: |
| 236 | self.getCash(dic=each) |
| 237 | elif each['taskStatus'] == 2: |
| 238 | notify(f"{each['taskName']}\t已领取") |
| 239 | elif each['taskName'] == '分享商品': |
| 240 | if each['taskStatus'] == 0: |
| 241 | self.shareGoods(count=2,flag=1,dic=each) |
| 242 | elif each['taskStatus'] == 1: |
| 243 | self.getCash(dic=each) |
| 244 | elif each['taskStatus'] == 2: |
| 245 | notify(f"{each['taskName']}\t已领取") |
| 246 | elif each['taskName'] == '观看直播': |
| 247 | if each['taskStatus'] == 0: |
| 248 | self.viewCashTask(each) |
| 249 | elif each['taskStatus'] == 1: |
| 250 | self.getCash(dic=each) |
| 251 | elif each['taskStatus'] == 2: |
| 252 | notify(f"{each['taskName']}\t已领取") |
| 253 | elif each['taskName'] == '浏览签到页': |
| 254 | if each['taskStatus'] == 0: |
| 255 | self.viewCashTask(each) |
| 256 | elif each['taskStatus'] == 1: |
| 257 | self.getCash(dic=each) |
| 258 | elif each['taskStatus'] == 2: |
| 259 | notify(f"{each['taskName']}\t已领取") |
| 260 | if each['taskName'] == '浏览领券中心': |
| 261 | if each['taskStatus'] == 0: |
| 262 | self.viewCashTask(each) |
| 263 | elif each['taskStatus'] == 1: |
| 264 | self.getCash(dic=each) |
| 265 | elif each['taskStatus'] == 2: |
| 266 | notify(f"{each['taskName']}\t已领取") |
| 267 | elif each['taskName'] == '浏览realme商品': |
| 268 | if each['taskStatus'] == 0: |
| 269 | self.viewCashTask(each) |
| 270 | elif each['taskStatus'] == 1: |
| 271 | self.getCash(dic=each) |
| 272 | elif each['taskStatus'] == 2: |
| 273 | notify(f"{each['taskName']}\t已领取") |
| 274 | elif each['taskName'] == '浏览指定商品': |
| 275 | if each['taskStatus'] == 0: |
| 276 | self.viewCashTask(each) |
| 277 | elif each['taskStatus'] == 1: |
| 278 | self.getCash(dic=each) |
| 279 | elif each['taskStatus'] == 2: |
| 280 | notify(f"{each['taskName']}\t已领取") |
no test coverage detected