Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyHer committed Jul 10, 2022
1 parent b9441ca commit d4225ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
# 山东大学 一键申请出校脚本 开润神器

![workflow](https://github.com/CrazyHer/run-away-from-sdu/actions/workflows/CI.yml/badge.svg)

本脚本旨在为沙袋师生提供更便捷和稳定的山东大学信息中心出校申请服务

( 说白了就是免去每次出校都要填写繁琐的表单,一键用上次提交出校申请的信息再帮你申一次

**仅备案制出校时可用** (其实审批制也可以,不过都审批制了也没必要

**济威青一校三地均可用** (理论上来说是这样的,不能用请提 issue

## 使用方法

### 1. CLI 命令行直接运行

安装 Nodejs 后,运行以下命令即可:

`npx run-away-from-sdu <userId> <password> <date> [endDate]`

参数说明:

userId 山大统一身份认证账号

password 山大统一身份认证密码

date 申请出校日期, 例: 2022-07-10

endDate 可选. 若填写, 则会批量申请至截止申请日期. 例: 2022-07-10

### 2. 作为 npm 包在 node 代码中引入
Expand Down Expand Up @@ -62,5 +72,7 @@ const app = async () => {
~~示意图以后再补~~

先用账号和密码去登录山大统一身份认证平台,跳转到山大信息化公共服务平台拿到对应的登录态 Cookie。

然后从服务中心获取并处理得到最新的出入校园申请的表单模板,对模板稍加修改并替换日期后得到本次请求的表单数据。

用这份表单数据向信息办的接口提交出校申请即可。

0 comments on commit d4225ff

Please sign in to comment.