Skip to content

Commit

Permalink
tsest2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunakier committed Nov 18, 2023
1 parent 75fd9f2 commit 099e5cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/teambition/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Addition struct {
Region string `json:"region" type:"select" options:"china,international" required:"true"`
Cookie string `json:"cookie" required:"true"`
ProjectID string `json:"project_id" required:"true"`
UseProxyGet bool `json:"use_proxy_get" required:"false" default:"true"`
UseProxyGet string `json:"use_proxy_get" required:"false" default:"0"`
WQProxyAddr string `json:"wq_proxy_addr" required:"false" default:"https://alist.57777777.xyz/apix/histyorlist/"`
driver.RootID
OrderBy string `json:"order_by" type:"select" options:"fileName,fileSize,updated,created" default:"fileName"`
Expand Down
2 changes: 1 addition & 1 deletion drivers/teambition/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (d *Teambition) getFiles(parentId string) ([]model.Obj, error) {
page++
for _, work := range works {
Urlx := work.DownloadURL
if d.UseProxyGet {
if d.UseProxyGet == "1" {
Urlx = d.WQProxyAddr + work.ID
}
files = append(files, &model.ObjThumbURL{
Expand Down

0 comments on commit 099e5cd

Please sign in to comment.