From a8ae14e88f77a921ca2d2a15731dc71b95f2087c Mon Sep 17 00:00:00 2001 From: LibraHp_0928 <1941163264@qq.com> Date: Wed, 14 Feb 2024 16:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=99=BB=E5=BD=9510?= =?UTF-8?q?=E4=BD=8D=E6=95=B0=E4=BB=A5=E4=B8=8BQQ=E5=90=8E=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84=E6=97=A0=E6=B3=95=E7=99=BB=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/RequestUtil.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/RequestUtil.py b/util/RequestUtil.py index a150b61..6530699 100644 --- a/util/RequestUtil.py +++ b/util/RequestUtil.py @@ -1,3 +1,5 @@ +import re + import util.LoginUtil as Login import requests import json @@ -6,7 +8,7 @@ cookies = Login.cookie() # 获取g_tk g_tk = Login.bkn(cookies.get('p_skey')) # 获取uin -uin = cookies.get('uin')[1:] +uin = re.sub(r'o0*', '', cookies.get('uin')) # 全局header headers = { 'authority': 'user.qzone.qq.com',