From ea4b9c4e251758fabf9fceab65d71d7de26edbcc Mon Sep 17 00:00:00 2001 From: qjfoidnh Date: Fri, 13 Dec 2024 23:10:07 +0800 Subject: [PATCH] test --- baidupcs/transfer.go | 6 ++---- internal/pcscommand/transfer.go | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/baidupcs/transfer.go b/baidupcs/transfer.go index f50690b..69e081a 100644 --- a/baidupcs/transfer.go +++ b/baidupcs/transfer.go @@ -10,9 +10,7 @@ import ( "path" "path/filepath" "regexp" - "strconv" "strings" - "time" ) type ( @@ -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) } diff --git a/internal/pcscommand/transfer.go b/internal/pcscommand/transfer.go index 0555231..97ba35f 100644 --- a/internal/pcscommand/transfer.go +++ b/internal/pcscommand/transfer.go @@ -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 执行分享链接转存到网盘 @@ -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"]