初始化加载数据
(self)
| 41 | logger.debug(f"[ApiKey] 初始化完成: {self.file_path}") |
| 42 | |
| 43 | async def init(self): |
| 44 | """初始化加载数据""" |
| 45 | if not self._loaded: |
| 46 | await self._load_data() |
| 47 | if not self._usage_loaded: |
| 48 | await self._load_usage_data() |
| 49 | |
| 50 | async def _load_data(self): |
| 51 | """加载 API Keys""" |