mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-26 10:16:32 +00:00
🐛 修复 EnkaNetworkAPI
被污染的问题
This commit is contained in:
parent
151b01120a
commit
61b85abcc7
@ -219,7 +219,7 @@ class _AvatarAssets(_AssetsService):
|
|||||||
|
|
||||||
def __init__(self, client: Optional[AsyncClient] = None, enka: Optional[EnkaAssets] = None):
|
def __init__(self, client: Optional[AsyncClient] = None, enka: Optional[EnkaAssets] = None):
|
||||||
super().__init__(client)
|
super().__init__(client)
|
||||||
self._enka_api = enka or EnkaAssets()
|
self._enka_api = enka or EnkaAssets(lang='chs')
|
||||||
|
|
||||||
def __call__(self, target: StrOrInt) -> "_AvatarAssets":
|
def __call__(self, target: StrOrInt) -> "_AvatarAssets":
|
||||||
temp = target
|
temp = target
|
||||||
@ -441,7 +441,7 @@ class _NamecardAssets(_AssetsService):
|
|||||||
def __call__(self, target: int) -> "_NamecardAssets":
|
def __call__(self, target: int) -> "_NamecardAssets":
|
||||||
result = _NamecardAssets(self.client)
|
result = _NamecardAssets(self.client)
|
||||||
result.id = target
|
result.id = target
|
||||||
result.enka = EnkaAssets().namecards(target)
|
result.enka = EnkaAssets(lang='chs').namecards(target)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
async def _get_from_ambr(self, item: str) -> Path | None:
|
async def _get_from_ambr(self, item: str) -> Path | None:
|
||||||
|
Loading…
Reference in New Issue
Block a user