MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / execute_task

Method execute_task

daily/sfsy.py:700–708  ·  view source on GitHub ↗

执行单个任务

(self)

Source from the content-addressed store, hash-verified

698 return all_tasks
699
700 def execute_task(self) -> bool:
701 """执行单个任务"""
702 url = 'https://mcs-mimp-web.sf-express.com/mcs-mimp/commonRoutePost/memberEs/taskRecord/finishTask'
703 data = {'taskCode': self.taskCode}
704
705 response = self.http.request(url, data=data)
706 if response and response.get('success'):
707 return True
708 return False
709
710 def _update_points(self):
711 """更新积分显示"""

Callers 1

run_all_tasksMethod · 0.95

Calls 2

requestMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected