日期修复

This commit is contained in:
Womsxd 2022-02-07 22:25:46 +08:00
parent d5503e10e3
commit 47bced2ac9
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -97,6 +97,8 @@ class Genshin:
log.warning("账号签到失败!") log.warning("账号签到失败!")
print(req.text) print(req.text)
if is_data["is_sign"] or data["retcode"] == 0 or data["retcode"] == -5003: 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])}" return_data += f"\n{i[0]}已连续签到{sign_days}\n今天获得的奖励是{tools.get_item(self.sign_Give[sign_days])}"
else: else:
return_data += f"\n{i[0]},本次签到失败" return_data += f"\n{i[0]},本次签到失败"