Skip to content

Commit

Permalink
🎉Update V0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SocialSisterYi committed Dec 10, 2023
1 parent 646776d commit 4e58388
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
44 changes: 27 additions & 17 deletions config.yml
Expand Up @@ -3,9 +3,9 @@
# 是否开启多会话模式
multi_session: true
# 是否开启姓名手机号打码
mask_acc: false
mask_acc: true
# TUI 最大显示高度 null: 自适应高度
tui_max_height: null
tui_max_height: 25
# 尝试拉取预先上传的人脸图片
fetch_uploaded_face: true
# 会话存档路径
Expand All @@ -23,9 +23,9 @@ face_image_path: "faces/"
# 视频
video:
# 使能
enable: false
enable: true
# 完成等待时间
wait: 50
wait: 15
# 倍速
speed: 1.0
# 视频播放汇报率 (没事别改)
Expand All @@ -38,7 +38,7 @@ work:
# 是否进行试题导出 可以将 `enable`设置为 false, 从而进行 dry run
export: false
# 完成等待时间
wait: 0
wait: 15
# 未匹配选项是否随机选择
fallback_fuzzer: false
# 作答失败后是否保存
Expand All @@ -56,7 +56,7 @@ exam:
# 未匹配选项是否随机选择
fallback_fuzzer: false
# 提交前延迟时间
persubmit_delay: 0
persubmit_delay: 15
# 是否需要交互式确认交卷 自动交卷: false 手动确认: true
confirm_submit: true

Expand All @@ -70,17 +70,27 @@ searchers:
# file_path: "questions.json" # 数据库文件路径

# REST API 在线搜题
- type: restApiSearcher
url: "https://api.shakaianee.top/qapi/question/search" # API URL 请进行替换
method: "POST" # 请求方式
q_field: "question" # 题目文本参数
o_field: "options" # 选项文本参数(可选) 用`#`分隔数据,用来进一步匹配答案(格式:选项A#选项B#选项C)
headers: # 自定义请求头(可选) 使用 yaml 的 k-v 语法填写
# eg: Authorization: 'xxx'
token: "4bfc64a8c752bddf698961493bd454d1"
ext_params: # 自定义扩展请求参数(可选) 使用 yaml 的 k-v 语法填写
# eg: Token: 'xxx'
a_field: "$.data.question.answer" # 返回参数 使用 JSONPath 语法进行查询
# - type: restApiSearcher
# url: "http://10.50.9.10:8088/question/search" # API URL 请进行替换
# method: "POST" # 请求方式
# q_field: "question" # 题目文本参数
# o_field: null # 选项文本参数 (可选) 用`#`分隔数据, 用来进一步匹配答案 (格式:选项A#选项B#选项C)
# headers: # 自定义请求头 (可选) 使用 yaml 的 k-v 语法填写
# # eg: Authorization: 'xxx'
# ext_params: # 自定义扩展请求参数 (可选) 使用 yaml 的 k-v 语法填写
# # eg: Token: 'xxx'
# a_field: "$.data" # 返回参数 使用 JSONPath 语法进行查询

# Json API 在线搜题
# - type: JsonApiSearcher
# url: "http://10.50.9.10:8088/question/search" # API URL 请进行替换
# q_field: "question" # 题目参数名称
# o_field: null # 选项参数名称 (可选) 填写为用`#`分隔数据, 用来进一步匹配答案 (格式:选项A#选项B#选项C) 不填为{"A":"xxx","B":"xxx","C":"xxx","D":"xxx"}
# headers: # 自定义请求头 (可选) 使用 yaml 的 k-v 语法填写
# # eg: Authorization: 'xxx'
# ext_params: # 自定义扩展请求参数 (可选) 使用 yaml 的 k-v 语法填写
# # eg: Token: 'xxx'
# a_field: "$.data" # 返回参数 使用 JSONPath 语法进行查询

# 本地 sqlite 数据库搜索器
# - type: sqliteSearcher
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "CxKitty"
version = "0.4.4"
version = "0.4.5"
description = "超星学习通答题姬. 媒体播放、章节测验、课程考试, 集成式自动化工具"
license = "GPL-3.0"
authors = ["SocialSisterYi <1440239038@qq.com>"]
Expand Down

0 comments on commit 4e58388

Please sign in to comment.