🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-10 16:20:05 +00:00
parent 8fb3662c03
commit 0cb595218e
13 changed files with 316 additions and 343 deletions

View File

@@ -177,15 +177,15 @@ class BasePlugin(ABC):
Any: 配置值或默认值
"""
# 支持嵌套键访问
keys = key.split('.')
keys = key.split(".")
current = self.config
for k in keys:
if isinstance(current, dict) and k in current:
current = current[k]
else:
return default
return current