代码拉取完成,页面将自动刷新
from myauto import MyAuto, wraper
from apps import APPS
from mylog import Log
import sys
log = Log()
def specialmain(device, app_name, tasks=None):
the_worker = APPS.get(app_name)
myauto = MyAuto(device)
log.set_name('netcash_speical'+ device, app_name)
wraper.log = log
if not tasks:
tasks = ['签到', '周期', '内容']
for task in tasks:
task_control = {app_name: task}
today_cash = {app_name: {}}
app = the_worker[0](myauto, log, the_worker[2])
app_mian = the_worker[1](app, task_control, today_cash)
app_mian.main()
if __name__ == '__main__':
args = sys.argv
try:
tasks = [i for i in args[3:]]
specialmain(args[1], args[2], tasks)
except Exception as e:
log.info(f'{e}')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。