diff --git a/nonebot_plugin_acgnshow/acgnshower.py b/nonebot_plugin_acgnshow/acgnshower.py index dbf0369..e1f379c 100644 --- a/nonebot_plugin_acgnshow/acgnshower.py +++ b/nonebot_plugin_acgnshow/acgnshower.py @@ -1,6 +1,5 @@ import traceback -from nonebot.typing import T_State from typing import Optional from .acgnapis import * from nonebot_plugin_htmlrender import template_to_pic, html_to_pic diff --git a/nonebot_plugin_acgnshow/res/details.html b/nonebot_plugin_acgnshow/res/details.html index d15a4b6..2b8dae9 100644 --- a/nonebot_plugin_acgnshow/res/details.html +++ b/nonebot_plugin_acgnshow/res/details.html @@ -39,8 +39,10 @@ {% endmacro %} {% if show.is_refund == 0 %} {{ icon('no') }} 不可退 + {% else %} + {{ icon('yes') }} 支持退 {% endif %} - {% if show.id_bind == 1 %} + {% if show.id_bind >= 1 %} {{ icon('yes') }} 实名制 {% endif %} {% if show.has_eticket %} diff --git a/pyproject.toml b/pyproject.toml index 3875715..eb7a3b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-acgnshow" -version = "0.2.3" +version = "0.2.3.1" description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据" readme = "README.md" requires-python = "<4.0,>=3.9"