From 77f66e3cf4c41c2e05e68e82a8a66b12255bbb5c Mon Sep 17 00:00:00 2001 From: beet <63141491+beetcb@users.noreply.github.com> Date: Wed, 16 Dec 2020 14:02:17 +0800 Subject: [PATCH] feat: main process --- main.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..759c7b0 --- /dev/null +++ b/main.js @@ -0,0 +1,18 @@ +const conf = require('./init') + +const login = require('./crawler/casLogIn') +const log = require('./interface/colorLog') + +const school = conf.get('school') +const users = conf.get('users') + +if (!users.length) log.error('未找到用户,请运行 ./init.js -u 配置') +users.forEach(async i => { + /** + * Keys of this cookie Object: + * YOU CAN USE THIS COOKIE FOR EVERYTHING + * @compusphere something about cp daliy's app + * @swms continuing log into your school's swms [stu work magagement system] + */ + const cookie = await login(school, i) +})