From 47bced2ac91a6f0fbcc92c399af2e320212cbbe9 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/genshin.py b/genshin.py index 5631322..170bbda 100644 --- a/genshin.py +++ b/genshin.py @@ -97,6 +97,8 @@ class Genshin: log.warning("账号签到失败!") print(req.text) if is_data["is_sign"] or data["retcode"] == 0 or data["retcode"] == -5003: + if data["retcode"] == 0: + sign_days += 1 return_data += f"\n{i[0]}已连续签到{sign_days}天\n今天获得的奖励是{tools.get_item(self.sign_Give[sign_days])}" else: return_data += f"\n{i[0]},本次签到失败"