From 05db8967b93b89b3908d3584ba8ddd1fe41f5c78 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Fri, 19 Aug 2022 08:54:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E8=AF=95=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genshin.py b/genshin.py index 842e3dc..9e08c8b 100644 --- a/genshin.py +++ b/genshin.py @@ -45,11 +45,12 @@ class Genshin: return data["data"] def check_in(self, account): - for i in range(3): + for i in range(4): req = http.post(url=setting.genshin_Signurl, headers=self.headers, json={'act_id': setting.genshin_Act_id, 'region': account[2], 'uid': account[1]}) data = req.json() if data["retcode"] == 0 and data["data"]["success"] == 1: + log.info(f'触发验证码,即将进行第{i+1}次重试,最多3次') time.sleep(random.randint(4, 10)) else: break