Skip to content

Commit

Permalink
🐛 refactor(hoyospider): 修正 API 端点名称
Browse files Browse the repository at this point in the history
- 将 getImagePostlist 修改为 getImagePostList
- 将 getForumPostlist 修改为 getForumPostList
- 将 forumGoodPostFulllist 修改为 forumGoodPostFullList
- 更新插件版本号至 0.3.4
  • Loading branch information
Cvandia committed Nov 13, 2024
1 parent 1752b1a commit 0a2eabf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nonebot_plugin_genshin_cos/hoyospider.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Rank(HoyoBasicSpider):

def __init__(self, forum_id: ForumType, type: RankType) -> None:
super().__init__()
self.api = self.base_url + "getImagePostlist"
self.api = self.base_url + "getImagePostList"
self.forum_id = forum_id.value
gametype = get_gids(forum_id.name)
self.gids = gametype.value
Expand Down Expand Up @@ -298,7 +298,7 @@ class Hot(HoyoBasicSpider):

def __init__(self, forum_id: ForumType) -> None:
super().__init__()
self.api = self.base_url + "getForumPostlist"
self.api = self.base_url + "getForumPostList"
self.forum_id = forum_id.value
gametype = get_gids(forum_id.name)
self.gids = gametype.value
Expand Down Expand Up @@ -338,7 +338,7 @@ class Good(HoyoBasicSpider):

def __init__(self, forum_id: ForumType) -> None:
super().__init__()
self.api = self.base_url + "forumGoodPostFulllist"
self.api = self.base_url + "forumGoodPostFullList"
self.forum_id = forum_id.value
gametype = get_gids(forum_id.name)
self.gids = gametype.value
Expand Down Expand Up @@ -373,7 +373,7 @@ class Latest(HoyoBasicSpider):

def __init__(self, forum_id: ForumType, type: LatestType) -> None:
super().__init__()
self.api = self.base_url + "getForumPostlist"
self.api = self.base_url + "getForumPostList"
self.forum_id = forum_id.value
gametype = get_gids(forum_id.name)
self.gids = gametype.value
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "pdm.backend"

[project]
name = "nonebot-plugin-genshin-cos"
version = "0.3.3"
version = "0.3.4"
description = "米游社原神cos图获取"
authors = [
{name = "Cvandia",email = "106718176+Cvandia@users.noreply.github.com"},
Expand Down

0 comments on commit 0a2eabf

Please sign in to comment.