MCPcopy Index your code
hub / github.com/Mashiro2000/HeyTapTask / start

Method start

TaskCenter.py:401–411  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399
400 # 执行欢太商城实例对象
401 def start(self):
402 self.sess.headers.update({
403 "User-Agent":self.dic['UA']
404 })
405 self.sess.cookies.update({
406 "Cookie": self.dic['CK']
407 })
408 if self.login() == True:
409 if self.getTaskList() == True: # 获取任务中心数据,判断CK是否正确(登录可能成功,但无法跑任务)
410 self.runTaskCenter() # 运行任务中心
411 notify('*' * 40 + '\n')
412
413# 检测CK是否存在必备参数
414def checkHT(dic):

Callers 1

main_handlerFunction · 0.95

Calls 4

loginMethod · 0.95
getTaskListMethod · 0.95
runTaskCenterMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected