Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Dec 11, 2024
1 parent 6fdf803 commit 62060bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions baidupcs/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package baidupcs

import (
"fmt"
"github.com/qjfoidnh/BaiduPCS-Go/baidupcs/netdisksign"
"github.com/qjfoidnh/BaiduPCS-Go/requester"
"github.com/tidwall/gjson"
"io/ioutil"
Expand Down Expand Up @@ -33,6 +34,8 @@ func (pcs *BaiduPCS) GenerateShareQueryURL(subPath string, params map[string]str
uv := shareURL.Query()
uv.Set("time", strconv.Itoa(int(time.Now().UnixMilli())))
uv.Set("clienttype", "1")
uv.Set("cuid", netdisksign.DevUID(pcs.GetBDUSS()))
uv.Set("devuid", netdisksign.DevUID(pcs.GetBDUSS()))
for key, value := range params {
uv.Set(key, value)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pcscommand/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func RunShareTransfer(params []string, opt *baidupcs.TransferOption) {
featuremap["bdstoken"] = tokens["bdstoken"]
featuremap["root"] = "1"
featuremap["share_type"] = "100"
featuremap["devuid"] = "1B2F1B5433FA268A289BD8870EDC7222|0"
//featuremap["devuid"] = baidupcs.
featuremap["timestamp"] = strconv.Itoa(int(time.Now().Unix()))
queryShareInfoUrl := pcs.GenerateShareQueryURL("list", featuremap).String()
//metajsonstr := tokens["metajson"]
Expand Down

0 comments on commit 62060bd

Please sign in to comment.