mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-13 18:10:53 +08:00
【新增】增加API接口测试功能接口 为部分供应商API增加测试功能
This commit is contained in:
@@ -197,3 +197,12 @@ func DeployBtDockerSite(cfg map[string]any) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func BtPanelAPITest(providerID string) error {
|
||||
data := url.Values{}
|
||||
_, err := RequestBt(&data, "POST", providerID, "mod/push/task/get_task_list")
|
||||
if err != nil {
|
||||
return fmt.Errorf("测试请求失败: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user