Update miui.py

pull/14/head
wd210010 11 months ago committed by GitHub
parent c2c29590c5
commit ced9f1ef6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      miui.py

@ -72,7 +72,7 @@ for i in range(len(mi_account)):
c_list.append(a) c_list.append(a)
cookie = str(c_list[-1]).replace('{','').replace('}','').replace(',',';').replace(': ','=').replace('\'','').replace(' ','') cookie = str(c_list[-1]).replace('{','').replace('}','').replace(',',';').replace(': ','=').replace('\'','').replace(' ','')
miui_vip_ph = "".join(re.findall('miui_vip_ph=(.*?);', cookie, re.S)) miui_vip_ph = "".join(re.findall('miui_vip_ph=(.*?);', cookie, re.S))
url = 'https://api.vip.miui.com/mtop/planet/vip/user/checkin?pathname=/mio/checkIn&version=dev.1144' url = 'https://api.vip.miui.com/mtop/planet/vip/user/checkinV2?ref=vipAccountShortcut&pathname=/mio/checkIn&version=dev.231107'
headers = { headers = {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
'Cookie': f'{cookie}' 'Cookie': f'{cookie}'

Loading…
Cancel
Save