From ead18d5ee006c11b9c47d3baeaac35732a39197c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 21 Feb 2023 19:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20`CookiesModel`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/apihelper/models/genshin/cookies.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/apihelper/models/genshin/cookies.py b/modules/apihelper/models/genshin/cookies.py index 3b54dbc..42a905b 100644 --- a/modules/apihelper/models/genshin/cookies.py +++ b/modules/apihelper/models/genshin/cookies.py @@ -22,9 +22,11 @@ class CookiesModel(BaseModel): account_mid_v2: Optional[str] = None cookie_token_v2: Optional[str] = None + account_id_v2: Optional[IntStr] = None ltoken_v2: Optional[str] = None ltmid_v2: Optional[str] = None + ltuid_v2: Optional[IntStr] = None @property def is_v1(self) -> bool: @@ -60,4 +62,8 @@ class CookiesModel(BaseModel): return self.login_uid if self.stuid: return self.stuid + if self.account_id_v2: + return self.account_id_v2 + if self.ltuid_v2: + return self.ltuid_v2 return None