refactor: update auth checker with optimized design and remove deprecated file

This commit is contained in:
HibiKier
2025-12-17 16:01:08 +08:00
parent 26150c2924
commit 4b225a3be9
4 changed files with 2684 additions and 2918 deletions
+2 -2
View File
@@ -9,14 +9,14 @@ from nonebot_plugin_uninfo import Uninfo
from zhenxun.services.log import logger
from .auth.config import LOGGER_COMMAND
from .auth_checker import LimitManager, auth
from .auth_checker import LimitManager, _auth_checker
# # 权限检测
@run_preprocessor
async def _(matcher: Matcher, event: Event, bot: Bot, session: Uninfo, message: UniMsg):
start_time = time.time()
await auth(
await _auth_checker.check(
matcher,
event,
bot,