mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
💬 更新权限检查日志提示
This commit is contained in:
parent
2853a2feaa
commit
6359ba63f9
@ -235,7 +235,10 @@ class AuthChecker:
|
|||||||
return
|
return
|
||||||
if plugin := await PluginInfo.get_or_none(module_path=module_path):
|
if plugin := await PluginInfo.get_or_none(module_path=module_path):
|
||||||
if plugin.plugin_type == PluginType.HIDDEN:
|
if plugin.plugin_type == PluginType.HIDDEN:
|
||||||
logger.debug("插件为HIDDEN,已跳过...")
|
logger.debug(
|
||||||
|
f"插件: {plugin.name}:{plugin.module} "
|
||||||
|
"为HIDDEN,已跳过权限检查..."
|
||||||
|
)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
cost_gold = await self.auth_cost(user, plugin, session)
|
cost_gold = await self.auth_cost(user, plugin, session)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user