🐛v0.2.3.1,考虑id_bind为2的情况(???),添加可退票提示

This commit is contained in:
Asankilp 2024-08-30 23:08:14 +08:00
parent eccba542ad
commit 945112d4c5
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import traceback import traceback
from nonebot.typing import T_State
from typing import Optional from typing import Optional
from .acgnapis import * from .acgnapis import *
from nonebot_plugin_htmlrender import template_to_pic, html_to_pic from nonebot_plugin_htmlrender import template_to_pic, html_to_pic

View File

@ -39,8 +39,10 @@
{% endmacro %} {% endmacro %}
{% if show.is_refund == 0 %} {% if show.is_refund == 0 %}
{{ icon('no') }} 不可退 {{ icon('no') }} 不可退
{% else %}
{{ icon('yes') }} 支持退
{% endif %} {% endif %}
{% if show.id_bind == 1 %} {% if show.id_bind >= 1 %}
{{ icon('yes') }} 实名制 {{ icon('yes') }} 实名制
{% endif %} {% endif %}
{% if show.has_eticket %} {% if show.has_eticket %}

View File

@ -1,6 +1,6 @@
[project] [project]
name = "nonebot-plugin-acgnshow" name = "nonebot-plugin-acgnshow"
version = "0.2.3" version = "0.2.3.1"
description = "Nonebot2插件从哔哩哔哩会员购获取简易展览数据" description = "Nonebot2插件从哔哩哔哩会员购获取简易展览数据"
readme = "README.md" readme = "README.md"
requires-python = "<4.0,>=3.9" requires-python = "<4.0,>=3.9"