From b39ca4d9a357b8cb5ae72ec027e743160811f94c Mon Sep 17 00:00:00 2001 From: rainerosion <1782832653@qq.com> Date: Thu, 29 Jul 2021 14:25:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index 053cdf1..a873432 100644 --- a/index.py +++ b/index.py @@ -91,7 +91,7 @@ def calculate_md5_sign(params): return hashlib.md5('&'.join(sorted(params.split('&'))).encode('utf-8')).hexdigest() def login(s,username, password): - url = "https://cloud.189.cn/udb/udb_login.jsp?pageId=1&redirectURL=/main.action" + url = "https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https%3A%2F%2Fcloud.189.cn%2Fweb%2Fredirect.html" r = s.get(url) captchaToken = re.findall(r"captchaToken' value='(.+?)'", r.text)[0] lt = re.findall(r'lt = "(.+?)"', r.text)[0]