diff --git a/README.md b/README.md index 10e5124..d50a8f9 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,11 @@ iikira/BaiduPCS-Go was largely inspired by [GangZhuo/BaiduPCS](https://github.co [离线下载](#离线下载), 支持http/https/ftp/电驴/磁力链协议. # 版本更新 +**2022.12.04** v3.9.0: +- 优化转存错误提示 +- fix #239 +- update go version to 1.18 + **2022.11.25** v3.8.9: - fix #234, 继续修复无法转存文件 diff --git a/baidupcs/transfer.go b/baidupcs/transfer.go index 6ca31c2..b9504e4 100644 --- a/baidupcs/transfer.go +++ b/baidupcs/transfer.go @@ -101,6 +101,9 @@ func (pcs *BaiduPCS) PostShareQuery(url string, referer string, data map[string] errno := gjson.Get(string(body), `errno`).Int() if errno != 0 { res["ErrMsg"] = fmt.Sprintf("未知错误, 错误码%d", errno) + if errno == -9 { + res["ErrMsg"] = "提取码错误" + } return } res["ErrMsg"] = "0" diff --git a/go.mod b/go.mod index f4a07a5..1663679 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/qjfoidnh/BaiduPCS-Go -go 1.17 +go 1.18 require ( github.com/GeertJohan/go.incremental v1.0.0 @@ -27,7 +27,7 @@ require ( github.com/bitly/go-simplejson v0.5.0 // indirect github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect - github.com/daaku/go.zipexe v1.0.0 // indirect + github.com/daaku/go.zipexe v1.0.2 // indirect github.com/mattn/go-colorable v0.1.8 // indirect github.com/mattn/go-isatty v0.0.12 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect diff --git a/go.sum b/go.sum index 6dc9555..7852b2e 100644 --- a/go.sum +++ b/go.sum @@ -37,8 +37,9 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSY github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY= github.com/daaku/go.zipexe v0.0.0-20150329023125-a5fe2436ffcb/go.mod h1:U0vRfAucUOohvdCxt5MWLF+TePIL0xbCkbKIiV8TQCE= -github.com/daaku/go.zipexe v1.0.0 h1:VSOgZtH418pH9L16hC/JrgSNJbbAL26pj7lmD1+CGdY= github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E= +github.com/daaku/go.zipexe v1.0.2 h1:Zg55YLYTr7M9wjKn8SY/WcpuuEi+kR2u4E8RhvpyXmk= +github.com/daaku/go.zipexe v1.0.2/go.mod h1:5xWogtqlYnfBXkSB1o9xysukNP9GTvaNkqzUZbt3Bw8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/main.go b/main.go index 7e72c5a..f11d69b 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,7 @@ const ( var ( // Version 版本号 - Version = "v3.8.9-devel" + Version = "v3.9.0-devel" historyFilePath = filepath.Join(pcsconfig.GetConfigDir(), "pcs_command_history.txt") reloadFn = func(c *cli.Context) error { diff --git a/versioninfo.json b/versioninfo.json index ce18927..d76550e 100644 --- a/versioninfo.json +++ b/versioninfo.json @@ -2,14 +2,14 @@ "FixedFileInfo": { "FileVersion": { "Major": 3, - "Minor": 8, - "Patch": 9, + "Minor": 9, + "Patch": 0, "Build": 0 }, "ProductVersion": { "Major": 3, - "Minor": 8, - "Patch": 9, + "Minor": 9, + "Patch": 0, "Build": 0 }, "FileFlagsMask": "3f", @@ -22,14 +22,14 @@ "Comments": "", "CompanyName": "qjfoidnh", "FileDescription": "百度网盘客户端(加强版)", - "FileVersion": "v3.8.9", + "FileVersion": "v3.9.0", "InternalName": "", "LegalCopyright": "© 2016-2020 iikira.", "LegalTrademarks": "", "OriginalFilename": "", "PrivateBuild": "", "ProductName": "BaiduPCS-Go", - "ProductVersion": "v3.8.9", + "ProductVersion": "v3.9.0", "SpecialBuild": "" }, "VarFileInfo": {