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

Method dosign_cloud

daily/chinaUnicom.py:2457–2466  ·  view source on GitHub ↗
(self, taskCode, taskName)

Source from the content-addressed store, hash-verified

2455 return False
2456
2457 def dosign_cloud(self, taskCode, taskName):
2458 if not self.get_userticket_cloud(False): return
2459 data = self.cloudRequest('dosign', {'taskCode': taskCode}, False, 'post')
2460 res = data.get('result')
2461 if not isinstance(res, dict):
2462 res = {}
2463 if "0000" in str(res.get('code')) and res.get('data', {}).get('score'):
2464 self.log(f"云盘任务: ✅ [{taskName}] 完成, 获得积分: {res['data']['score']}", notify=True)
2465 else:
2466 self.log(f"云盘任务: ❌ [{taskName}] 失败: {res}")
2467
2468 def get_taskDetail_cloud(self):
2469 taskList = self.query_cloud_task_list_cloud()

Callers 1

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