GithubHelp home page GithubHelp logo

autocheckinxc's Introduction

autocheckinXC

学程自动打卡脚本

Apple设备可以使用以下捷径,直接在自己的手机或者iPad上创建自动化,无需电脑或者服务器部署

https://www.icloud.com/shortcuts/5136552c5cc84aa187774701aaa2d480

捷径社区: click

保存捷径后,根据两个注释,填入学校、账号、密码、打卡情况


网页版学程https://pa.pkqa.com.cn

  1. 学校

    const appCode = ""; //这里是学校,根据sid来

    App-Code就是学校代码,编号来自网页版,注意是填写sid号

    image-20200422131503489
  2. 账号密码

    const studentId = ""; //学号
    const password = ""; //密码

账号密码为了获取token

  1. 打卡请求数据

    const province = ""; //省(中文)
    const city = ""; //市(中文)
    const district = ""; //区(中文)

    如果不是绿码或者对一下列项不是默认否的,请自行在代码中修改

    image-20200422165244597

     request.write(
                '{"bizType":"' + bizType + '","groupid":"' + groupid + '","value":[{"location":["' + province + '","' + city + '","' + district + '"],"whatColorIsYourHangzhouHealthCode":"greenCode","inWenzhouHuangyanWenlingOrPassOrContactPersonsFromTheAboveAreas":"no","inHubeiOrPassOrComeIntoContactWithPeopleFromHubei":"no","closeContactWithConfirmedOrSuspectedCases":"no","currentLifeSituation":"normalHome","currentHealthCondition":"beInGoodHealth"}]}'
            );
            request.end();

    当然了,如果不是默认否的,不建议用脚本,还是根据自身身体情况手动打卡

脚本自动打卡时间是每天凌晨00:01:00

可以根据自己需求修改

let job = schedule.scheduleJob("00 01 00 * * *", () => {
        gettoken((callback) => {
            token = callback;
            getThemeId((themeid) => {
                getGroupID(themeid, (groupid, bizType) => {
                    autodk(groupid, bizType);
                });
            });
        });
    });

后面 * * *代表每天执行,00 01 00格式是秒 分 时

Centos

yum install node
npm install
nohup node autodk.js &

autocheckinxc's People

Contributors

dependabot[bot] avatar gkirito avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autocheckinxc's Issues

捷径发布问题

有的同学没有代理不能访问捷径链接,可否把该捷径发布在第三方社区?如sharecuts.cn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.