diff --git a/baidupcs/transfer.go b/baidupcs/transfer.go index f50690b..7986f68 100644 --- a/baidupcs/transfer.go +++ b/baidupcs/transfer.go @@ -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" @@ -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) } diff --git a/internal/pcscommand/transfer.go b/internal/pcscommand/transfer.go index b8cf145..45a7e0d 100644 --- a/internal/pcscommand/transfer.go +++ b/internal/pcscommand/transfer.go @@ -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"]