MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / query_task_records_cloud

Method query_task_records_cloud

daily/chinaUnicom.py:2291–2303  ·  view source on GitHub ↗
(self, cursor="")

Source from the content-addressed store, hash-verified

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("")

Calls 4

get_userticket_cloudMethod · 0.95
cloudRequestMethod · 0.95
logMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected