mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
🐛 修复吾爱破解获取不到用户 uid 导致可能签到失败的 BUG
This commit is contained in:
parent
9fe1064aef
commit
98410badc3
@ -38,7 +38,11 @@ class PojieCheckIn:
|
||||
"Cookie": pojie_cookie,
|
||||
"ContentType": "text/html;charset=gbk",
|
||||
}
|
||||
uid = re.findall(r"htVD_2132_lastcheckfeed=(.*?);", pojie_cookie)[0].split("%7C")[0]
|
||||
try:
|
||||
uid = re.findall(r"htVD_2132_lastcheckfeed=(.*?);", pojie_cookie)[0].split("%7C")[0]
|
||||
except Exception as e:
|
||||
print(e)
|
||||
uid = "未获取到用户 uid"
|
||||
sign_msg = self.sign(headers=headers)
|
||||
msg = f"帐号信息: {uid}\n签到状态: {sign_msg}"
|
||||
return msg
|
||||
|
Loading…
Reference in New Issue
Block a user