Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Dec 13, 2024
1 parent 07b19a0 commit ea4b9c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions baidupcs/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import (
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"time"
)

type (
Expand All @@ -31,8 +29,8 @@ func (pcs *BaiduPCS) GenerateShareQueryURL(subPath string, params map[string]str
Path: "/share/" + subPath,
}
uv := shareURL.Query()
uv.Set("time", strconv.Itoa(int(time.Now().UnixMilli())))
uv.Set("clienttype", "1")
//uv.Set("time", strconv.Itoa(int(time.Now().UnixMilli())))
//uv.Set("clienttype", "1")
for key, value := range params {
uv.Set(key, value)
}
Expand Down
8 changes: 3 additions & 5 deletions internal/pcscommand/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ package pcscommand
import (
"encoding/base64"
"fmt"
"github.com/qjfoidnh/BaiduPCS-Go/baidupcs"
"path"
"regexp"
"strconv"
"strings"
"time"

"github.com/qjfoidnh/BaiduPCS-Go/baidupcs"
)

// RunShareTransfer 执行分享链接转存到网盘
Expand Down Expand Up @@ -84,11 +82,11 @@ func RunShareTransfer(params []string, opt *baidupcs.TransferOption) {
//featuremap["sekey"] = sekey
featuremap["bdstoken"] = tokens["bdstoken"]
featuremap["root"] = "1"
featuremap["web"] = "1"
featuremap["web"] = "5"
featuremap["app_id"] = "250528"
featuremap["shorturl"] = featurestr[1:]
//featuremap["devuid"] = baidupcs.
featuremap["timestamp"] = strconv.Itoa(int(time.Now().Unix()))
//featuremap["timestamp"] = strconv.Itoa(int(time.Now().Unix()))
featuremap["channel"] = "chunlei"
queryShareInfoUrl := pcs.GenerateShareQueryURL("list", featuremap).String()
//metajsonstr := tokens["metajson"]
Expand Down

0 comments on commit ea4b9c4

Please sign in to comment.