Skip to content

Commit

Permalink
fix国图
Browse files Browse the repository at this point in the history
  • Loading branch information
deweizhu committed Sep 23, 2024
1 parent 48b1a19 commit cd34a38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
3 changes: 2 additions & 1 deletion app/nlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ func (r *ChinaNlc) doPdfUrl(sUrl, filename string) error {
}
tokenKey, timeKey, timeFlag := r.getToken(sUrl)

pdfUrl := fmt.Sprintf("%s://%s/menhu/OutOpenBook/getReader?aid=%s&bid=%s&kime=%s&fime=%s",
//http://read.nlc.cn/menhu/OutOpenBook/getReaderNew
pdfUrl := fmt.Sprintf("%s://%s/menhu/OutOpenBook/getReaderNew?aid=%s&bid=%s&kime=%s&fime=%s",
r.dt.UrlParsed.Scheme, r.dt.UrlParsed.Host, v.Get("aid"), v.Get("bid"), timeKey, timeFlag)

ctx := context.Background()
Expand Down
28 changes: 15 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ module bookget
go 1.23

require (
github.com/andreburgaud/crypt2go latest
github.com/jzelinskie/whirlpool latest
github.com/spf13/pflag latest
github.com/stretchr/testify latest
github.com/valyala/fasthttp latest
golang.org/x/text latest
gopkg.in/ini.v1 latest
github.com/andreburgaud/crypt2go v1.8.0
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/valyala/fasthttp v1.55.0
golang.org/x/text v0.18.0
gopkg.in/ini.v1 v1.67.0
)

github.com/andybalholm/brotli latest
github.com/davecgh/go-spew latest
github.com/klauspost/compress latest
github.com/pmezard/go-difflib latest
github.com/valyala/bytebufferpool latest
gopkg.in/yaml.v3 latest
require (
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit cd34a38

Please sign in to comment.