docs:增加config属性说明
This commit is contained in:
22
README.md
22
README.md
@@ -7,3 +7,25 @@ NCU移动深澜校园网登录脚本Go语言版
|
|||||||
GO语言可以直接交叉编译出mips架构可执行程序(路由器)(主流平台更不用说了),从而免除安装环境。
|
GO语言可以直接交叉编译出mips架构可执行程序(路由器)(主流平台更不用说了),从而免除安装环境。
|
||||||
|
|
||||||
代码逻辑来自 https://github.com/coffeehat/BIT-srun-login-script
|
代码逻辑来自 https://github.com/coffeehat/BIT-srun-login-script
|
||||||
|
|
||||||
|
Config.json模板:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"domain": "www.msftconnecttest.com", //登录地址ip或域名
|
||||||
|
"username": "", //账号
|
||||||
|
"password": "" //密码
|
||||||
|
},
|
||||||
|
"meta": { //登录参数
|
||||||
|
"n": "200",
|
||||||
|
"v_type": "1",
|
||||||
|
"acid": "5",
|
||||||
|
"enc": "srun_bx1"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"quit_if_net_ok": false, //登陆前是否检查网络
|
||||||
|
"demo_mode": false //测试模式,报错更详细
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user