🐛 修复 bind 模板 type 错误

This commit is contained in:
2026-03-04 03:18:15 +08:00
parent c4ab6badbc
commit 67058a1492
4 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ async def _(nb_user: User, event_session: Uninfo, interface: QryItrface):
raw=await render_image(
Bind(
platform='TETR.IO',
type='unlink',
type='unbind',
user=People(
avatar=str(
URL(f'http://{netloc}/host/resource/tetrio/avatars/{user.ID}')

View File

@@ -47,7 +47,7 @@ async def _(
raw=await render_image(
Bind(
platform='TOP',
type='unlink',
type='unbind',
user=People(
avatar=await get_avatar(
event_session.user,

View File

@@ -46,7 +46,7 @@ async def _(
raw=await render_image(
Bind(
platform='TOS',
type='unlink',
type='unbind',
user=People(
avatar=await get_avatar(event_session.user, 'Data URI', None),
name=user.name,

View File

@@ -12,7 +12,7 @@ class Bind(Base):
return 'v1/binding'
platform: Literal['TETR.IO', 'TOP', 'TOS']
type: Literal['success', 'unknown', 'unlink', 'unverified', 'error']
type: Literal['success', 'unknown', 'unbind', 'unverified', 'error']
user: People
bot: People
prompt: str