From 6b74ec2de4c4b9e12a315aa2cb59934213db6e0e Mon Sep 17 00:00:00 2001 From: johlanse Date: Fri, 12 Aug 2022 10:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config_default.yml | 7 ++++--- docs/config.md | 44 +++++++++++++++++++++++++++++++++++------ 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/conf/config_default.yml b/conf/config_default.yml index 59efb98..1679d5e 100644 --- a/conf/config_default.yml +++ b/conf/config_default.yml @@ -26,8 +26,8 @@ push: enable: false access_token: "" secret: "" -# 目前仅支持pushplus推送二维码,默认建议使用pushplus推送 -# pushplus使用方法见:http://www.pushplus.plus/ +# 目前仅支持push-plus推送二维码,默认建议使用push-plus推送 +# push-plus使用方法见:http://www.pushplus.plus/ push_plus: enable: false token: "" @@ -37,6 +37,7 @@ tg: enable: false chat_id: 0 token: "" + # telegram的代理,不配置默认走系统代理 proxy: "" # 自定义tg的api,可通过cloudflare搭建,需自备域名 custom_api: "https://api.telegram.org" @@ -68,7 +69,7 @@ wechat: login_temp_id: "" # 发送普通消息需要使用的消息模板 # 模板标题:随意 模板内容: {{data.DATA}} - normal_temp_id: "-6Q" + normal_temp_id: "" # xxqg会每隔两小时左右检查所有用户的ck有效性,若开启该选项,会在检查失败时推送提醒消息 push_login_warn: false diff --git a/docs/config.md b/docs/config.md index c3bbe48..fccee28 100644 --- a/docs/config.md +++ b/docs/config.md @@ -20,7 +20,7 @@ model: 3 log_level: "info" # 是否显示浏览器 -show_browser: true +show_browser: false # 跳转学习强国的scheme,默认使用本仓库的action自建scheme,若需自行修改,可直接复制仓库下/docs/scheme.html到任意静态文件服务器 scheme: "https://johlanse.github.io/study_xxqg/scheme.html?" @@ -31,10 +31,10 @@ push: enable: false access_token: "" secret: "" - # 目前仅支持pushplus推送二维码,默认建议使用pushplus推送 - # pushplus使用方法见:http://www.pushplus.plus/ + # 目前仅支持push-plus推送二维码,默认建议使用push-plus推送 + # push-plus使用方法见:http://www.pushplus.plus/ push_plus: - enable: true + enable: false token: "" # telegram交互模式配置 @@ -42,7 +42,10 @@ tg: enable: false chat_id: 0 token: "" + # telegram的代理,不配置默认走系统代理 proxy: "" + # 自定义tg的api,可通过cloudflare搭建,需自备域名 + custom_api: "https://api.telegram.org" # 网页端配置 web: @@ -50,12 +53,31 @@ web: enable: true # host: 0.0.0.0 - port: 80 + port: 8080 # 网页端登录账号 account: admin # 网页端登录密码 password: admin +# 微信公众号测试号配置 +wechat: + # 是否启用 + enable: false + # 开发者平台设置的token + token: "" + # 开发者平台的secret + secret: "" + # 开发者平台的appId + app_id: "" + # 发送登录消息需要使用的消息模板 + # 模板标题,随意 模板内容: 点我登录,然后在浏览器中打开!! + login_temp_id: "" + # 发送普通消息需要使用的消息模板 + # 模板标题:随意 模板内容: {{data.DATA}} + normal_temp_id: "" + # xxqg会每隔两小时左右检查所有用户的ck有效性,若开启该选项,会在检查失败时推送提醒消息 + push_login_warn: false + # 登录重试配置 retry: # 重试次数 @@ -68,7 +90,10 @@ retry: # 设置是否定时执行学习程序,格式为cron格式 # "9 19 * * *" 每天19点9分执行一次 # "* 10 * * *” 每天早上十点执行一次 -cron: "" +cron: "0 0 * * *" + +# 定时任务随机等待时间,单位:分钟 +cron_random_wait: 0 #windows环境自定义浏览器路径,仅支持chromium系列 edge_path: "" @@ -78,4 +103,11 @@ qr_code: false # 启动时等待时间,为了防止代理启动比软件慢而报错,默认不等待,单位秒 start_wait: 0 + +# 专项答题可接受的最小分值,因一天重复运行的时候,若专项答题未能答满会继续答新的一套题,会浪费题 +special_min_score: 10 + +# 题目搜索的顺序,为true则从2018年最开始搜题,否则从现在最新开始搜题 +reverse_order: false + ```