From be6376e133b3841468038854315d00c2aef3ef2a Mon Sep 17 00:00:00 2001 From: Night-stars-1 <99261160+Night-stars-1@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:47:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20token=E9=94=99=E8=AF=AF=E5=86=99?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miuitask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miuitask.py b/miuitask.py index 5c2f113..3e573e6 100644 --- a/miuitask.py +++ b/miuitask.py @@ -45,7 +45,7 @@ async def main(): log.info(f"任务{task.name}被禁用") continue token = await get_token(cookies["cUserId"]) if task_obj == CheckIn else None - status, reason = await task_obj(cookies, token).sign() + status, reason = await task_obj(cookies, account.user_agent, token).sign() if not status and reason == "cookie": raise ValueError("Cookie失效") except RetryError: