From 8c2540d8d1ca3701efcceefff2752ffa48868369 Mon Sep 17 00:00:00 2001 From: PianCat <50688679+PianCat@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:53:51 +0800 Subject: [PATCH] Fix Checkin Error (#112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 适配新版签到 * 适配新版签到 --- miuitask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miuitask.py b/miuitask.py index 64479c5..9318bd4 100644 --- a/miuitask.py +++ b/miuitask.py @@ -258,8 +258,8 @@ class MIUITask: 'miui_vip_ph': str(self.miui_vip_ph) } try: - response = requests.get( - 'https://api.vip.miui.com/mtop/planet/vip/user/checkin?pathname=/mio/checkIn&version=dev.1144', + response = requests.post( + 'https://api.vip.miui.com/mtop/planet/vip/user/checkinV2?ref=vipAccountShortcut&pathname=/mio/checkIn&version=dev.231107', headers=headers,params=params) r_json = response.json() if r_json['status'] == 401: