From f9c5ebe5d5e5c93d136fc7fba0a217fc5017b00b Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Sun, 30 Jan 2022 16:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=B6=88=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshin.py | 4 ++-- honkai3rd.py | 4 ++-- main.py | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/genshin.py b/genshin.py index 6b9ab40..5631322 100644 --- a/genshin.py +++ b/genshin.py @@ -97,9 +97,9 @@ class Genshin: log.warning("账号签到失败!") print(req.text) if is_data["is_sign"] or data["retcode"] == 0 or data["retcode"] == -5003: - return_data += f"\n旅行者:{i[0]}已连续签到{sign_days}天,今天获得的奖励是{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: - return_data += f"\n旅行者:{i[0]},本次签到失败" + return_data += f"\n{i[0]},本次签到失败" else: log.warning("账号没有绑定任何原神账号!") return_data += "\n并没有绑定任何原神账号" diff --git a/honkai3rd.py b/honkai3rd.py index 43687f2..6fd1129 100644 --- a/honkai3rd.py +++ b/honkai3rd.py @@ -98,9 +98,9 @@ class Honkai3rd: else: log.info(f"舰长{i[0]}今天已经签到过了~\r\n今天获得的奖励是{tools.get_item(today_item)}") if is_data["is_sign"] or data["retcode"] == 0 or data["retcode"] == -5003: - return_data += f"\n舰长:{i[0]}已连续签到{self.sign_day}天,今天获得的奖励是{tools.get_item(today_item)}" + return_data += f"\n{i[0]}已连续签到{self.sign_day}天\n今天获得的奖励是{tools.get_item(today_item)}" else: - return_data += f"\n舰长:{i[0]},本次签到失败" + return_data += f"\n{i[0]},本次签到失败" else: log.warning("账号没有绑定任何崩坏3账号!") return_data += "\n并没有绑定任何崩坏3账号" diff --git a/main.py b/main.py index 535fc4e..d383e58 100644 --- a/main.py +++ b/main.py @@ -39,9 +39,9 @@ def main(): bbs = mihoyobbs.mihoyobbs() if bbs.Task_do["bbs_Sign"] and bbs.Task_do["bbs_Read_posts"] and bbs.Task_do["bbs_Like_posts"] and \ bbs.Task_do["bbs_Share"]: - bbs_message = f"今天已经全部完成了!一共获得{mihoyobbs.Today_have_getcoins}个米游币,目前有{mihoyobbs.Have_coins}个米游币" - return_data += "\n" + bbs_message - log.info(bbs_message) + return_data += "\n" + f"今天已经全部完成了!\n"\ + f"一共获得{mihoyobbs.Today_have_getcoins}个米游币\n目前有{mihoyobbs.Have_coins}个米游币" + log.info(f"今天已经全部完成了!一共获得{mihoyobbs.Today_have_getcoins}个米游币,目前有{mihoyobbs.Have_coins}个米游币") else: if config.mihoyobbs["bbs_Signin"]: bbs.signing() @@ -52,10 +52,10 @@ def main(): if config.mihoyobbs["bbs_Share"]: bbs.share_post() bbs.Get_taskslist() - bbs_message = f"今天已经获得{mihoyobbs.Today_have_getcoins}个米游币,"\ - f"还能获得{mihoyobbs.Today_getcoins}个米游币,目前有{mihoyobbs.Have_coins}个米游币" - return_data += "\n" + bbs_message - log.info(bbs_message) + return_data += "\n" + f"今天已经获得{mihoyobbs.Today_have_getcoins}个米游币\n"\ + f"还能获得{mihoyobbs.Today_getcoins}个米游币\n目前有{mihoyobbs.Have_coins}个米游币" + log.info(f"今天已经获得{mihoyobbs.Today_have_getcoins}个米游币," + f"还能获得{mihoyobbs.Today_getcoins}个米游币,目前有{mihoyobbs.Have_coins}个米游币") time.sleep(random.randint(2, 8)) else: return_data += "\n" + "米游社功能未启用!"