Skip to content

Commit

Permalink
1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
iuroc committed Sep 17, 2024
1 parent e46c01d commit 1d1f0a2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 124 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
package-lock.json
js/
js/
dist/
115 changes: 0 additions & 115 deletions dist/index.d.mts

This file was deleted.

2 changes: 0 additions & 2 deletions dist/index.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.mjs.map

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"name": "gede-book-api",
"description": "> 歌德电子书借阅机 API",
"version": "1.0.16",
"version": "1.0.17",
"types": "./dist/index.d.mts",
"exports": "./dist/index.mjs",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/book.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export class Book {
}

/** 获取图书目录数据 */
static async getCatalog(id: string) {
return await this.getData(id, 1, 0)
static async getCatalog(id: string, width = 1500, height = 1500) {
return await this.getData(id, 1, 0, width, height)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/magazine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export class Magazine {
}

/** 获取期刊目录数据 */
static async getCatalog(surl: string, issueId: string) {
return await this.getData(surl, issueId, 1, 0)
static async getCatalog(surl: string, issueId: string, width = 1500, height = 1500) {
return await this.getData(surl, issueId, 1, 0, width, height)
}

private static async getDetailURL(surl: string) {
Expand Down

0 comments on commit 1d1f0a2

Please sign in to comment.