- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
配置文件重载
将废弃
POST
/api/general/reload
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:9898/api/general/reload'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
array [object {2}]
必需
reloadable
string
必需
reloadResult
string
必需
示例
{
"success": true,
"message": null,
"data": [
{
"reloadable": "com.ghostchu.peerbanhelper.text.TextManager",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.pbhplus.ActivationManager",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.IPBlackList",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.PeerIdBlacklist",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.ClientNameBlacklist",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.ProgressCheatBlocker",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.MultiDialingBlocker",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.AutoRangeBan",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.BtnNetworkOnline",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.module.impl.rule.IPBlackRuleList",
"reloadResult": "SUCCESS"
},
{
"reloadable": "com.ghostchu.peerbanhelper.PeerBanHelperServer",
"reloadResult": "SUCCESS"
}
]
}
🟠403未登录或Token错误
🟠429IP地址因频繁失败尝试而被封禁
🔴500内部服务器错误
🟠400通用参数错误
🔵303需要OOBE初始化
修改于 2024-10-23 11:28:19