Fix Checkin Error (#112)

* 适配新版签到

* 适配新版签到
This commit is contained in:
PianCat 2023-11-09 19:53:51 +08:00 committed by GitHub
parent ad93e8916a
commit 8c2540d8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: