From 366f2c4ca148ef7f6174183e022db5a9ee2ed10a Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Mon, 31 May 2021 15:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E0=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/genshin.py b/genshin.py index b9ba562..09509da 100644 --- a/genshin.py +++ b/genshin.py @@ -74,7 +74,7 @@ class genshin: if (is_data["first_bind"] == True): tools.log.warn(f"旅行者{i[0]}是第一次绑定米游社,请先手动签到一次") else: - sing_Days = is_data["total_sign_day"] + sing_Days = is_data["total_sign_day"] - 1 if (is_data["is_sign"] == True): tools.log.info(f"旅行者{i[0]}今天已经签到过了~\r\n今天获得的奖励是{self.Get_item(self.sing_Give[sing_Days])}") else: @@ -83,7 +83,10 @@ class genshin: json={'act_id': setting.genshin_Act_id, 'region': i[2], 'uid': i[1]}) data = req.json() if (data["retcode"] == 0): - tools.log.info(f"旅行者{i[0]}签到成功~\r\n今天获得的奖励是{self.Get_item(self.sing_Give[sing_Days + 1])}") + if (sing_Days == 0): + tools.log.info(f"旅行者{i[0]}签到成功~\r\n今天获得的奖励是{self.Get_item(self.sing_Give[sing_Days])}") + else: + tools.log.info(f"旅行者{i[0]}签到成功~\r\n今天获得的奖励是{self.Get_item(self.sing_Give[sing_Days + 1])}") elif (data["retcode"] == -5003): tools.log.info(f"旅行者{i[0]}今天已经签到过了~\r\n今天获得的奖励是{self.Get_item(self.sing_Give[sing_Days])}") else: