From 945112d4c5a96c985dae0e10fd52b4f60a147245 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Fri, 30 Aug 2024 23:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bv0.2.3.1=EF=BC=8C=E8=80=83=E8=99=91?= =?UTF-8?q?id=5Fbind=E4=B8=BA2=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=88?= =?UTF-8?q?=EF=BC=9F=EF=BC=9F=EF=BC=9F=EF=BC=89=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=AF=E9=80=80=E7=A5=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_acgnshow/acgnshower.py | 1 - nonebot_plugin_acgnshow/res/details.html | 4 +++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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"