mirror of
https://github.com/wangdage12/Snap.Server.git
synced 2026-02-17 08:52:10 +08:00
添加类型注释、修复抽卡id问题
This commit is contained in:
@@ -22,7 +22,7 @@ class ConfigLoader:
|
||||
|
||||
return self._config
|
||||
|
||||
def get(self, key: str, default=None):
|
||||
def get(self, key: str, default=None) -> Any:
|
||||
"""获取配置值,支持点号分隔的嵌套键"""
|
||||
config = self.load_config()
|
||||
keys = key.split('.')
|
||||
|
||||
Reference in New Issue
Block a user