Skip to content

Commit 1e5275a

Browse files
committed
v3.9.0
1 parent 7e0a723 commit 1e5275a

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ iikira/BaiduPCS-Go was largely inspired by [GangZhuo/BaiduPCS](https://github.co
100100
[离线下载](#离线下载), 支持http/https/ftp/电驴/磁力链协议.
101101

102102
# 版本更新
103+
**2022.12.04** v3.9.0:
104+
- 优化转存错误提示
105+
- fix #239
106+
- update go version to 1.18
107+
103108
**2022.11.25** v3.8.9:
104109
- fix #234, 继续修复无法转存文件
105110

baidupcs/transfer.go

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func (pcs *BaiduPCS) PostShareQuery(url string, referer string, data map[string]
101101
errno := gjson.Get(string(body), `errno`).Int()
102102
if errno != 0 {
103103
res["ErrMsg"] = fmt.Sprintf("未知错误, 错误码%d", errno)
104+
if errno == -9 {
105+
res["ErrMsg"] = "提取码错误"
106+
}
104107
return
105108
}
106109
res["ErrMsg"] = "0"

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/qjfoidnh/BaiduPCS-Go
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/GeertJohan/go.incremental v1.0.0
@@ -27,7 +27,7 @@ require (
2727
github.com/bitly/go-simplejson v0.5.0 // indirect
2828
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
2929
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect
30-
github.com/daaku/go.zipexe v1.0.0 // indirect
30+
github.com/daaku/go.zipexe v1.0.2 // indirect
3131
github.com/mattn/go-colorable v0.1.8 // indirect
3232
github.com/mattn/go-isatty v0.0.12 // indirect
3333
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect

go.sum

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSY
3737
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
3838
github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY=
3939
github.com/daaku/go.zipexe v0.0.0-20150329023125-a5fe2436ffcb/go.mod h1:U0vRfAucUOohvdCxt5MWLF+TePIL0xbCkbKIiV8TQCE=
40-
github.com/daaku/go.zipexe v1.0.0 h1:VSOgZtH418pH9L16hC/JrgSNJbbAL26pj7lmD1+CGdY=
4140
github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E=
41+
github.com/daaku/go.zipexe v1.0.2 h1:Zg55YLYTr7M9wjKn8SY/WcpuuEi+kR2u4E8RhvpyXmk=
42+
github.com/daaku/go.zipexe v1.0.2/go.mod h1:5xWogtqlYnfBXkSB1o9xysukNP9GTvaNkqzUZbt3Bw8=
4243
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4344
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
4445
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const (
5555

5656
var (
5757
// Version 版本号
58-
Version = "v3.8.9-devel"
58+
Version = "v3.9.0-devel"
5959

6060
historyFilePath = filepath.Join(pcsconfig.GetConfigDir(), "pcs_command_history.txt")
6161
reloadFn = func(c *cli.Context) error {

versioninfo.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"FixedFileInfo": {
33
"FileVersion": {
44
"Major": 3,
5-
"Minor": 8,
6-
"Patch": 9,
5+
"Minor": 9,
6+
"Patch": 0,
77
"Build": 0
88
},
99
"ProductVersion": {
1010
"Major": 3,
11-
"Minor": 8,
12-
"Patch": 9,
11+
"Minor": 9,
12+
"Patch": 0,
1313
"Build": 0
1414
},
1515
"FileFlagsMask": "3f",
@@ -22,14 +22,14 @@
2222
"Comments": "",
2323
"CompanyName": "qjfoidnh",
2424
"FileDescription": "百度网盘客户端(加强版)",
25-
"FileVersion": "v3.8.9",
25+
"FileVersion": "v3.9.0",
2626
"InternalName": "",
2727
"LegalCopyright": "© 2016-2020 iikira.",
2828
"LegalTrademarks": "",
2929
"OriginalFilename": "",
3030
"PrivateBuild": "",
3131
"ProductName": "BaiduPCS-Go",
32-
"ProductVersion": "v3.8.9",
32+
"ProductVersion": "v3.9.0",
3333
"SpecialBuild": ""
3434
},
3535
"VarFileInfo": {

0 commit comments

Comments
 (0)