加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
special.py 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
hotootop 提交于 2021-02-02 11:09 . 主要代码
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}')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化