feat: add kyapp qinglong qx rewrite

This commit is contained in:
2026-05-30 01:03:36 +08:00
parent 63ab824f68
commit 12db183eee
4 changed files with 322 additions and 4 deletions
+67
View File
@@ -0,0 +1,67 @@
# 快音 KYAPP → 青龙环境变量自动更新(Quantumult X
## 订阅地址
```text
https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/conf/kyapp_qinglong.conf
```
## 功能
这个 QX 重写会监听快音接口:
```text
*.kaixinyf.cn ... /passport/get_token
*.kaixinyf.cn ... /task/get_task_page_info
```
抓到 `device_id``token_body` 后,按青龙变量 `KYAPP` 所需格式写入:
```json
[{"device_id":"...","token_body":"...","txAmount":3}]
```
`txAmount` 固定写 `3`
## QX 变量
脚本需要以下变量才能直接更新青龙:
```text
ql_host 青龙地址,例如 http://192.168.2.66:5700
ql_client_id 青龙应用 client_id
ql_client_secret 青龙应用 client_secret
```
可选:
```text
kyapp_seed 初始 KYAPP JSON 数组;如果青龙还没有 KYAPP,可以用它作为初始合并基线
```
如果未配置青龙变量,脚本只会在 QX 本地保存 `kyapp_records`,不会主动同步青龙。
## 使用流程
1. QX 添加重写订阅:
```text
https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/conf/kyapp_qinglong.conf
```
2. 开启 MitM 并信任证书。
3. 确认 hostname 包含:
```text
*.kaixinyf.cn
```
4. 配置 QX 变量 `ql_host` / `ql_client_id` / `ql_client_secret`。
5. 打开快音 App,触发登录/任务页接口。
6. QX 通知显示 `已更新青龙 KYAPP` 即完成。
## 安全说明
- 仓库里不提交 CK 明文。
- 脚本只请求你配置的青龙地址。
- 重写脚本和订阅都使用 Gitea HTTPS raw 地址,避免原始第三方 HTTP 脚本被中间人篡改。