Skip to content

Commit

Permalink
Update transfer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Dec 11, 2024
1 parent 07f4635 commit 4304fac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/pcscommand/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"regexp"
"strconv"
"strings"
"time"

"github.com/qjfoidnh/BaiduPCS-Go/baidupcs"
)
Expand Down Expand Up @@ -83,6 +84,10 @@ func RunShareTransfer(params []string, opt *baidupcs.TransferOption) {
sekey, _ := url.QueryUnescape(randsk)
featuremap["sekey"] = sekey
featuremap["bdstoken"] = tokens["bdstoken"]
featuremap["root"] = "1"
featuremap["share_type"] = "100"
//featuremap["devuid"] = pcs.(pcs.GetBDUSS())
featuremap["timestamp"] = strconv.Itoa(int(time.Now().Unix()))
queryShareInfoUrl := pcs.GenerateShareQueryURL("list", featuremap).String()
//metajsonstr := tokens["metajson"]
trans_metas := pcs.ExtractShareInfo(queryShareInfoUrl)
Expand Down

0 comments on commit 4304fac

Please sign in to comment.