From 27770f9aba5ce3af4a79ef2fa8de238a629ca1d7 Mon Sep 17 00:00:00 2001 From: y1ndan Date: Tue, 5 Jan 2021 13:23:25 +0800 Subject: [PATCH] refactor: output improvements --- genshin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/genshin.py b/genshin.py index 2cd038c..0eb2ef0 100755 --- a/genshin.py +++ b/genshin.py @@ -216,7 +216,7 @@ class Sign(object): } logging.info('准备为旅行者 {} 号签到...' \ - '\n区服: {}\nUID: {}'.format(i + 1, self._regionNameList[i], uid)) + '\n 区服: {}\n UID: {}'.format(i + 1, self._regionNameList[i], uid)) try: jdict = json.loads(requests.Session().post( Conf.sign_url, headers = self.get_header(), @@ -238,7 +238,7 @@ class Sign(object): else: messageList.append(jdict) - return notify(sckey, status, messageList) + return notify(sckey, status, ",".join(messageList)) def message(self): return ''' @@ -247,8 +247,7 @@ class Sign(object): 今日奖励: {} × {} 本月累签: {} 天 签到结果: {} - {:#^30} - ''' + {:#^30}''' def notify(sckey, status, message):