This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig_example.json
81 lines (81 loc) · 3.16 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
{
"//setting": "用户设置",
"setting": {
"timer": {
"//switch": "[必填]如果想开启定时运行,则将 switch 设置为 on,默认为 off 不开启",
"switch": "off",
"//time interval": "[选填]开启定时时间后必须设定间隔运行时间,如每三十分钟运行一次则输入30(用双引号包裹)(单位:分钟)",
"time_interval": "30"
},
"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": {
"sail_query_url": "https://www.cmskchp.com/sailingsJson",
"purchase_url": "https://h5.cmskchp.com/?trans=shipTicket&chanId=0"
},
"payload": {
"startSite": "SK",
"endSite": "HKA",
"toDate": "NEED_UPDATE"
},
"copyright": "\n数据来源:<a href=\"https://www.cmskchp.com\">蛇口邮轮母港</a>|侵权请联系删除",
"push_url": {
"wechat_v1": "http://sc.ftqq.com",
"wechat_v2": "https://sctapi.ftqq.com"
},
"path": {
"account_file": "../config/account.csv",
"email_tmpl": "../config/email_tmpl.html"
},
"push_content": {
"success": {
"title": "[查询成功]",
"message": ""
},
"error": {
"title": "[查询失败]",
"message": "查询失败"
}
},
"errmsg": [
{
"errno": 0,
"msg": "OK"
},
{
"errno": -1,
"msg": "未知错误"
},
{
"errno": 1,
"msg": "HTTP请求失败"
}
]
}
}