(self, cursor="")
| 2289 | return task_detail.get('taskList', []) or [] |
| 2290 | |
| 2291 | def query_task_records_cloud(self, cursor=""): |
| 2292 | if not self.get_userticket_cloud(False): |
| 2293 | return [] |
| 2294 | data = self.cloudRequest('taskRecords', {"cursor": cursor}, False, 'post') |
| 2295 | if not isinstance(data, dict): |
| 2296 | self.log("云盘任务: taskRecords 返回结构异常,已跳过积分明细查询") |
| 2297 | return [] |
| 2298 | res = data.get('result') |
| 2299 | if not isinstance(res, dict): |
| 2300 | body = str(res).replace('\r', ' ').replace('\n', ' ').strip()[:120] |
| 2301 | self.log(f"云盘任务: taskRecords 返回异常,已跳过积分明细查询 (status={data.get('status')}, body={body or 'None'})") |
| 2302 | return [] |
| 2303 | return res.get('data', []) or [] |
| 2304 | |
| 2305 | def init_cloud_task_records_state(self): |
| 2306 | records = self.query_task_records_cloud("") |
no test coverage detected