mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
⭐导入最近PR
This commit is contained in:
parent
4ec6f39af1
commit
c7427ecb20
@ -55,7 +55,7 @@ class LevelUser(Model):
|
|||||||
level: 权限等级
|
level: 权限等级
|
||||||
group_flag: 是否被自动更新刷新权限 0:是, 1:否.
|
group_flag: 是否被自动更新刷新权限 0:是, 1:否.
|
||||||
"""
|
"""
|
||||||
if await cls.exists(user_id=user_id, group_id=group_id, level=level):
|
if await cls.exists(user_id=user_id, group_id=group_id, user_level=level):
|
||||||
# 权限相同时跳过
|
# 权限相同时跳过
|
||||||
return
|
return
|
||||||
await cls.update_or_create(
|
await cls.update_or_create(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user