增加策略列表、绑定、解绑

This commit is contained in:
algotao
2025-08-09 15:54:57 +08:00
parent 6ca9fe7a02
commit edb12c3b1f
22 changed files with 1674 additions and 125 deletions

View File

@@ -44,7 +44,7 @@ func RunTaskDownload(args ...string) error {
destPath: *destPath,
saasHttp: &saashttp.SaasClient{
Client: &http.Client{},
ApiUrls: &cfg.ApiUrls,
ApiUrls: saashttp.InitAPIUrl(&cfg.ApiUrls),
Auth: &cfg.Auth,
},
}
@@ -63,7 +63,7 @@ func doTaskDownload(downloadTaskParams downloadTaskParams) error {
}
if len(taskInfo.GetSourcePath()) == 0 {
err = fmt.Errorf("task download failed. source path is empty")
err = fmt.Errorf("task download failed. task info source path is empty")
fmt.Fprintln(os.Stderr, err)
return err
}