diff --git a/core/cookies/services.py b/core/cookies/services.py index 36ee380b..42e77049 100644 --- a/core/cookies/services.py +++ b/core/cookies/services.py @@ -50,7 +50,8 @@ class PublicCookiesService: user_list.clear() cookies_list = await self._repository.get_all_cookies(RegionEnum.HOYOLAB) for cookies in cookies_list: - user_list.append(cookies.user_id) + if cookies.status is not None and cookies.status != CookiesStatusEnum.STATUS_SUCCESS: + user_list.append(cookies.user_id) add, count = await self._cache.add_public_cookies(user_list, RegionEnum.HOYOLAB) logger.info(f"国际服公共Cookies池已经添加[{add}]个 当前成员数为[{count}]")