整理代码

This commit is contained in:
2022-10-09 13:37:16 +08:00
parent af8fa05394
commit 09e18c526a
6 changed files with 55 additions and 36 deletions

View File

@@ -76,6 +76,8 @@ class DataBase():
cursor.execute(
f'INSERT INTO {game_type}BIND (QQ, USER) VALUES (?, ?)', (qq_number, user))
message = '绑定成功'
else:
raise ValueError('预期外行为, 请上报GitHub')
db.commit()
return message