From 07f4635f895fda60575f7c3d4038bba498c6a75b Mon Sep 17 00:00:00 2001 From: qjfoidnh Date: Wed, 11 Dec 2024 03:18:34 +0800 Subject: [PATCH] Update transfer.go --- internal/pcscommand/transfer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/pcscommand/transfer.go b/internal/pcscommand/transfer.go index b59c519..2632f98 100644 --- a/internal/pcscommand/transfer.go +++ b/internal/pcscommand/transfer.go @@ -3,6 +3,7 @@ package pcscommand import ( "encoding/base64" "fmt" + "net/url" "path" "regexp" "strconv" @@ -79,7 +80,8 @@ func RunShareTransfer(params []string, opt *baidupcs.TransferOption) { return } - featuremap["sekey"] = randsk + sekey, _ := url.QueryUnescape(randsk) + featuremap["sekey"] = sekey featuremap["bdstoken"] = tokens["bdstoken"] queryShareInfoUrl := pcs.GenerateShareQueryURL("list", featuremap).String() //metajsonstr := tokens["metajson"]