Skip to content

Commit

Permalink
👽 同步 API 0.2.1 版本的接口 (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Well2333 authored Jan 12, 2025
1 parent 4276bff commit e6ff341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions nonebot_plugin_bilichat/request_api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from nonebot_plugin_bilichat.model.exception import RequestError
from nonebot_plugin_bilichat.model.request_api import Account, Content, Dynamic, LiveRoom, Note, SearchUp, VersionInfo

MINIMUM_API_VERSION = Version("0.1.3")
MINIMUM_API_VERSION = Version("0.2.1")


class RequestAPI:
Expand Down Expand Up @@ -78,12 +78,11 @@ async def content_column(self, cvid: str | int, quality: int):
async def account_web_all(self) -> list[Account]:
return [Account(cookies={}, **acc) for acc in (await self._get("/account/web_account")).json()]

async def account_web_creat(self, uid: int, cookies: list[dict] | dict, note: Note) -> Account:
async def account_web_creat(self, cookies: list[dict] | dict, note: Note) -> Account:
return Account.model_validate(
(
await self._post(
"/account/web_account/create",
params={"uid": str(uid)},
json={"cookies": cookies, "note": note.model_dump()},
)
).json()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "nonebot-plugin-bilichat"

version = "6.0.4"
version = "6.0.5"

description = "全功能的 bilibili 内容解析器及订阅器"
authors = [
Expand Down

0 comments on commit e6ff341

Please sign in to comment.