MCPcopy Create free account
hub / github.com/ZainCheung/netease-cloud / taskPool

Function taskPool

index.py:337–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335任务池
336'''
337def taskPool():
338
339 config = init()
340 check() # 每天对api做一次检查
341 if config['peopleSwitch'] is True:
342 logger.info('多人开关已打开,即将执行进行多人任务')
343 account = loadJson("account.json")
344 for man in account:
345 logger.info('账号: ' + man['account'] + ' 开始执行\n========================================')
346 task = Task(man['account'], man['password'], man['pushmethod'], man['sckey'], man['appToken'], man['wxpusheruid'], man['barkServer'], man['barkKey'], man['countrycode'])
347 task.start()
348 time.sleep(10)
349 logger.info('所有账号已全部完成任务,服务进入休眠中,等待明天重新启动')
350 else :
351 logger.info('账号: ' + config['uin'] + ' 开始执行\n========================================')
352 if config['md5Switch'] is True:
353 logger.info('MD5开关已打开,即将开始为你加密,密码不会上传至服务器,请知悉')
354 config['pwd'] = md5(config['pwd'])
355 task = Task(config['uin'], config['pwd'], config['pushmethod'], config['sckey'], config['appToken'], config['wxpusheruid'], config['barkServer'], config['barkKey'], config['countrycode'])
356 task.start()
357
358'''
359程序的入口

Callers 2

mainFunction · 0.70
index.pyFile · 0.70

Calls 6

startMethod · 0.95
initFunction · 0.70
checkFunction · 0.70
loadJsonFunction · 0.70
TaskClass · 0.70
md5Function · 0.70

Tested by

no test coverage detected