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

Method query_cloud_task_list_cloud

daily/chinaUnicom.py:2273–2289  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2271 return remaining, stage_goal
2272
2273 def query_cloud_task_list_cloud(self):
2274 if not self.get_userticket_cloud(False):
2275 return []
2276 data = self.cloudRequest('taskDetail', {}, False, 'post')
2277 if not isinstance(data, dict):
2278 self.log("云盘任务: taskDetail 返回结构异常,已跳过本轮任务列表")
2279 return []
2280 res = data.get('result')
2281 if not isinstance(res, dict):
2282 body = str(res).replace('\r', ' ').replace('\n', ' ').strip()[:120]
2283 self.log(f"云盘任务: taskDetail 返回异常,已跳过本轮任务列表 (status={data.get('status')}, body={body or 'None'})")
2284 return []
2285 task_detail = res.get('data', {}).get('taskDetail', {})
2286 if not isinstance(task_detail, dict):
2287 self.log("云盘任务: taskDetail 数据结构异常,已跳过本轮任务列表")
2288 return []
2289 return task_detail.get('taskList', []) or []
2290
2291 def query_task_records_cloud(self, cursor=""):
2292 if not self.get_userticket_cloud(False):

Callers 2

get_taskDetail_cloudMethod · 0.95

Calls 4

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

Tested by

no test coverage detected