This repository has been archived by the owner on May 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.json
120 lines (120 loc) · 4.32 KB
/
config_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"//setting": "用户设置",
"setting": {
"timer": {
"//switch": "[必填]如果想开启定时打卡,则将 switch 设置为 on,默认为 off 不开启",
"switch": "off",
"//set_time": "[选填]开启定时打卡后必须设定打卡时间,如6点5分则输入06.05(用双引号包裹)",
"set_time": "06.05"
},
"push": {
"//email": "邮件推送配置",
"email": {
"//switch": "[必填]如果需要邮件推送打卡结果,则将 switch 设置为 on,默认为 off 不开启",
"switch": "off",
"//bot_email": "[选填]负责推送服务的邮箱",
"bot_email": {
"//email_user": "邮箱地址 [email protected]",
"email_user": "",
"//email_host": "邮箱域名 smtp.xx.com",
"email_host": "",
"//email_pwd": "邮箱授权码(并不一定是邮箱密码)",
"email_pwd": ""
}
},
"//wechat": "微信推送配置,使用了Server酱的推送服务",
"wechat": {
"//switch": "[必填]微信推送全局开关。如果需要微信推送打卡结果,则将 switch 设置为 on,默认为 off 不开启",
"switch": "off",
"//version": "[选填]提供多种推送通道,请确保选择正确。version为[1]表示sc版Server酱,[2]表示sct版Server酱,[3]表示腾讯云自建企业微信(go-scf)。默认为[2] sct版Server酱",
"version": 2,
"//api": "[选填]如果version为[3],必须填入 api (请求路径:https://xxxxxxxxxx)",
"api": "https://xxxxxxxxxx"
}
}
},
"//config": "!!程序配置,请勿修改!!",
"config": {
"url": {
"host_head": "https://xsswzx.cdu.edu.cn",
"host_foot": "com_user",
"login": "weblogin.asp",
"left": "left.asp",
"navigation": "健康日报登记",
"report_default": "projecthealth_addx.asp",
"report": "projecthealth_add.asp",
"wechat_v1": "http://sc.ftqq.com",
"wechat_v2": "https://sctapi.ftqq.com"
},
"path": {
"account_file": "../config/account.csv",
"email_tmpl": "../config/email_tmpl.html"
},
"response": {
"success": "提交成功",
"existed": "已存在"
},
"push_content":{
"existed": {
"title": "[打卡已存在]",
"message":"当日打卡已存在!"
},
"success": {
"title": "[打卡成功]",
"message":"打卡成功!"
},
"failed":{
"title": "[打卡失败]",
"message":"打卡可能失败,请手动打卡!"
},
"error":{
"title": "[ERROR]",
"message": "ERROR!"
}
},
"all_hosts": {
"ispstu": "富强",
"ispstu1-1": "民主",
"ispstu1-2": "文明",
"ispstu2": "和谐",
"ispstu2-1": "自由",
"ispstu2-2": "平等",
"ispstu3": "公正",
"ispstu3-1": "法治",
"ispstu3-2": "爱国",
"ispstu4": "敬业",
"ispstu4-1": "诚信",
"ispstu4-3": "友善"
},
"errmsg": [
{
"errno": 0,
"msg": "OK"
},
{
"errno": -1,
"msg": "未知错误"
},
{
"errno": 1,
"msg": "提取验证码失败"
},
{
"errno": 2,
"msg": "登录ISP系统失败:学号、密码或验证码错误"
},
{
"errno": 3,
"msg": "解析『健康日报登记』地址失败"
},
{
"errno": 4,
"msg": "网络错误,与CDU-ISP系统建立连接失败"
},
{
"errno": 5,
"msg": "解析最新登记地点失败,请手动打卡"
}
]
}
}