mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 12:51:45 +00:00
🐛 Fix expired cookies add to cache
This commit is contained in:
parent
343dd826ca
commit
ab793a07ce
@ -50,6 +50,7 @@ class PublicCookiesService:
|
|||||||
user_list.clear()
|
user_list.clear()
|
||||||
cookies_list = await self._repository.get_all_cookies(RegionEnum.HOYOLAB)
|
cookies_list = await self._repository.get_all_cookies(RegionEnum.HOYOLAB)
|
||||||
for cookies in cookies_list:
|
for cookies in cookies_list:
|
||||||
|
if cookies.status is not None and cookies.status != CookiesStatusEnum.STATUS_SUCCESS:
|
||||||
user_list.append(cookies.user_id)
|
user_list.append(cookies.user_id)
|
||||||
add, count = await self._cache.add_public_cookies(user_list, RegionEnum.HOYOLAB)
|
add, count = await self._cache.add_public_cookies(user_list, RegionEnum.HOYOLAB)
|
||||||
logger.info(f"国际服公共Cookies池已经添加[{add}]个 当前成员数为[{count}]")
|
logger.info(f"国际服公共Cookies池已经添加[{add}]个 当前成员数为[{count}]")
|
||||||
|
Loading…
Reference in New Issue
Block a user