🐛 修复展览详情无法获取

This commit is contained in:
Asankilp 2025-06-11 18:58:13 +08:00
parent f417f829cc
commit acb504a0e5
5 changed files with 1501 additions and 12 deletions

View File

@ -1,15 +1,18 @@
name: Publish
on:
push:
tags:
- '*'
release:
types:
- published
workflow_dispatch:
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python
@ -31,7 +34,4 @@ jobs:
--outdir dist/
.
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

3
.gitignore vendored
View File

@ -162,4 +162,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
bot.py
pdm.lock
.env
.env.*

View File

@ -46,7 +46,7 @@ async def get_show_details_cmd(id: Optional[int] = None):
await UniMessage("请输入展览ID").send()
return
show_details = await get_show_details(id)
if show_details["errno"] != 0:
if show_details["code"] != 0:
await UniMessage("发生{}号错误".format(show_details["errno"])).send()
return
try:

1481
pdm.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-acgnshow"
version = "0.2.3.3.1"
dynamic = ["version"]
description = "Nonebot2插件从哔哩哔哩会员购获取简易展览数据"
readme = "README.md"
requires-python = "<4.0,>=3.9"
@ -20,17 +20,24 @@ Homepage = "https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow"
[tool.nonebot]
plugins = ["nonebot_plugin_acgnshow"]
adapters = [{name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11"}]
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "file"
path = "nonebot_plugin_acgnshow/__init__.py"
source = "scm"
tag_filter = "v*"
tag_regex = '^v(?:\D*)?(?P<version>([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$'
fallback_version = "0.1.0"
[tool.pdm.build]
includes = []
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.ruff.lint]
ignore = ["E402"]