Skip to content

Commit

Permalink
fix transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Jun 23, 2024
1 parent caa18a3 commit 0e24faa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/pcscommand/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ func RunShareTransfer(params []string, opt *baidupcs.TransferOption) {
var vefiryurl string
var randsk string
featuremap := make(map[string]string)
featuremap["bdstoken"] = tokens["bdstoken"]
featuremap["surl"] = featurestr[1:len(featurestr)]
//featuremap["surl"] = featurestr[1:len(featurestr)]
featuremap["shareid"] = tokens["shareid"]
featuremap["uk"] = tokens["uk"]
if extracode != "none" {

vefiryurl = pcs.GenerateShareQueryURL("verify", featuremap).String()
res := pcs.PostShareQuery(vefiryurl, link, map[string]string{
"pwd": extracode,
"vcode": "",
"vcode_str": "",
"vcode": "null",
"vcode_str": "null",
"bddstoken": tokens["bdstoken"],
})
if res["ErrMsg"] != "0" {
fmt.Printf("%s失败: %s\n", baidupcs.OperationShareFileSavetoLocal, res["ErrMsg"])
Expand Down

0 comments on commit 0e24faa

Please sign in to comment.