mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🗃️ 添加 verify 字段到 Bind 模型,并在创建或更新绑定时支持该字段
This commit is contained in:
@@ -42,6 +42,8 @@ async def create_or_update_bind(
|
||||
user: User,
|
||||
game_platform: GameType,
|
||||
game_account: str,
|
||||
*,
|
||||
verify: bool = False,
|
||||
) -> BindStatus:
|
||||
bind = await query_bind_info(
|
||||
session=session,
|
||||
@@ -53,6 +55,7 @@ async def create_or_update_bind(
|
||||
user_id=user.id,
|
||||
game_platform=game_platform,
|
||||
game_account=game_account,
|
||||
verify=verify,
|
||||
)
|
||||
session.add(bind)
|
||||
status = BindStatus.SUCCESS
|
||||
|
||||
Reference in New Issue
Block a user